Re: Symbolic link breaks for postgresql.auto.conf

2021-06-07 Thread RAJAMOHAN
Thanks guys. Able to resolve the issue, by using the include_if_exists parameter as Adrian suggested. Thanks & Regards, Rajamohan.J On Mon, Jun 7, 2021 at 1:02 AM Adrian Klaver wrote: > On 6/6/21 10:50 AM, Vijaykumar Jain wrote: > > Please reply to list also. > Ccing list > > Also please use

Re: Symbolic link breaks for postgresql.auto.conf

2021-06-06 Thread Adrian Klaver
On 6/6/21 10:50 AM, Vijaykumar Jain wrote: Please reply to list also. Ccing list Also please use inline or bottom posting, it makes things easier to follow. Yeah I am aware of that :) I was referring to if the main config is managed via some config management tool like puppet, ansible or  an

Re: Symbolic link breaks for postgresql.auto.conf

2021-06-06 Thread Adrian Klaver
On 6/6/21 10:02 AM, Vijaykumar Jain wrote: Yes, I learnt it the hard way as well :) I made changes via the alter system, and did a pg_restore, and the changes were lost  :) use the alter system for ad hoc changes, but make sure those changes are added back to the postgresql.conf file immediate

Re: Symbolic link breaks for postgresql.auto.conf

2021-06-06 Thread Vijaykumar Jain
Yes, I learnt it the hard way as well :) I made changes via the alter system, and did a pg_restore, and the changes were lost :) use the alter system for ad hoc changes, but make sure those changes are added back to the postgresql.conf file immediately (or however the main conf file is managed).

Re: Symbolic link breaks for postgresql.auto.conf

2021-06-06 Thread Tom Lane
RAJAMOHAN writes: > I am trying to keep a symbolic link for the *postgresql.auto.conf* outside > the data directory. The link gets created but whenever I issue an alter > system statement it gets broken. This is not supported. Don't do it. The right way to keep the hand-maintained config files

Re: Symbolic link breaks for postgresql.auto.conf

2021-06-06 Thread Adrian Klaver
On 6/6/21 9:00 AM, RAJAMOHAN wrote: Hello all, Can someone explain how *postgresql.auto.conf *file contents gets updated, when running an alter system statement followed by pg_reload_conf? I am trying to keep a symbolic link for the *postgresql.auto.conf* outside the data directory. The link

Symbolic link breaks for postgresql.auto.conf

2021-06-06 Thread RAJAMOHAN
Hello all, Can someone explain how *postgresql.auto.conf *file contents gets updated, when running an alter system statement followed by pg_reload_conf? I am trying to keep a symbolic link for the *postgresql.auto.conf* outside the data directory. The link gets created but whenever I issue an alt