Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only reading postgres.conf and not what is in the live database #80

Open
ikzelf opened this issue Mar 11, 2021 · 1 comment
Open

only reading postgres.conf and not what is in the live database #80

ikzelf opened this issue Mar 11, 2021 · 1 comment

Comments

@ikzelf
Copy link

ikzelf commented Mar 11, 2021

Hi, first of all, thanks, it is a nice tool.
I happen to have a configuration where conf.d is used and timescales-tune seems not to recognise this. A nice improvement could be to read the values from the live database and maybe write the changes to conf.d/13_tuned.conf.

I feel this would make life a bit easier. 13 is obviously a random choice and should be the highest number so it overrules all previous settings.

@fastman
Copy link

fastman commented Oct 7, 2021

yeah, I agree. I'd be nice if tune was reading config files from include and include_dir.

Alternative:

COPY (with s as  (select name,setting,vartype from pg_settings) select name || ' = ' || CASE vartype WHEN 'string' THEN '"' || setting || '"' ELSE setting  END from s) TO '/tmp/p.conf';

and

timescaledb-tune --conf-path /tmp/p.conf --yes --dry-run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants