BUG: postgresql.auto.conf location

From: Alexandr Blinov <alexandr(dot)blinov(at)mysky(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Cc: Alexander Saltanov <asd(at)mysky(dot)com>
Subject: BUG: postgresql.auto.conf location
Date: 2018-05-30 17:23:31
Message-ID: 6B536098-5BCE-4188-8348-8A11C293A29C@mysky.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello, team!

I’m not sure if this is a bug or not, but the behavior of the postgresql server somewhat confusing.

The postgresql server is started with following parameters:
/usr/lib/postgresql/9.5/bin/postgres -D /var/lib/postgresql/9.5/main -c config_file=/etc/postgresql/9.5/main/postgresql.conf
hba_file = '/etc/postgresql/9.5/main/pg_hba.conf'
ident_file = '/etc/postgresql/9.5/main/pg_ident.conf'

After that the following command is executed: ‘ALTER SYSTEM SET max_connections = xxx;’

File postgresql.auto.conf is be created at ‘data’ directory, although this is expected in the same directory as the main postgresql.conf file.

This is a confusing, because in case of backup/restore or pg_basebackup to a new server (or new slave server), auto.conf file also will be transferred and applied to a new server, which in some cases is not expected.

Alexandr Blinov
System Administrator
T: + 41 22 575 2554 | T: + 7 495 258 7088
Av Mon Repos 14 | 1005 Lausanne | Switzerland
1-ya Rybinskaya Street 3 | 107113 Moscow | Russia
www.mysky.com

National Winner for Switzerland 2017/2018 European Business Awards <https://www.businessawardseurope.com/otww/Switzerland>

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2018-05-30 17:43:53 Re: BUG: postgresql.auto.conf location
Previous Message Michael Paquier 2018-05-30 17:20:01 Re: [BUG] postgresql replaying WAL slowly when master drop a large number of relations in one transaction