You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The way I am using PostgreSQL is, once installed, I do not modify the file /etc/postgresql/[VERSION]/main/postgresql.conf.
I prefer to create extra configuration files that I put in /etc/postgresql/9.6/[VERSION]/conf.d/ since files in *.conf directory are automatically loaded.
That way I have:
../conf.d/general.conf in which I set common parameters like listen_addresses = '*' and other stuffs.
../conf.d/replication.conf if I have to set a replication
Other files that could be managed are: .psqlrc, .pgpass or pg_ident.
For the moment, I am managing everything through salt/postgres/init.sls with some file.managed. But I am under the impression of missing something by doing it this way.
So my question is would be a good idea to manage extra configuration files with this formula?
Activity