I can't seem to find a way to change the default location of postgresql.conf
file from /etc/postgresql/14/main/postgresql.conf
to my/own/location/postgresql.conf
.
I am running postgresql on Ubuntu server.
I tried changing it using the postgres command line as per the docs but it gives the following error:
postgres=# ALTER SYSTEM SET config_file='/my/loc/test/postgresql/14/main/postgresql.conf';
ERROR: parameter "config_file" cannot be changed
any ideas?