pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedorder of reading the conf files
6+ messages / 4 participants
[nested] [flat]
* order of reading the conf files
@ 2018-12-06 07:20 bhargav kamineni <kbn98406@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: bhargav kamineni @ 2018-12-06 07:20 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
may i know the order in which postgres reads the configuration files like
conf , auto.conf , hba ?
and how does postmaster forks postgres , can we see that forking process in
logfile ?
Thanks,
Banu.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: order of reading the conf files
@ 2018-12-06 14:46 Rene Romero Benavides <rene.romero.b@gmail.com>
parent: bhargav kamineni <kbn98406@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Rene Romero Benavides @ 2018-12-06 14:46 UTC (permalink / raw)
To: kbn98406@gmail.com; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Why do you need to know that ?
Am Do., 6. Dez. 2018 um 01:21 Uhr schrieb bhargav kamineni <
kbn98406@gmail.com>:
>
> Hi,
>
> may i know the order in which postgres reads the configuration files like
> conf , auto.conf , hba ?
> and how does postmaster forks postgres , can we see that forking process
> in logfile ?
>
>
>
> Thanks,
> Banu.
>
--
El genio es 1% inspiración y 99% transpiración.
Thomas Alva Edison
http://pglearn.blogspot.mx/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: order of reading the conf files
@ 2018-12-06 14:52 Stephen Frost <sfrost@snowman.net>
parent: Rene Romero Benavides <rene.romero.b@gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Frost @ 2018-12-06 14:52 UTC (permalink / raw)
To: Rene Romero Benavides <rene.romero.b@gmail.com>; +Cc: kbn98406@gmail.com; pgsql-general <pgsql-general@lists.postgresql.org>
Greetings,
* Rene Romero Benavides (rene.romero.b@gmail.com) wrote:
> Why do you need to know that ?
Please don't top-post, first, and second, it certainly seems like a
worthwhile thing to want to know, for a variety of reasons, such as
"what takes precedence- ALTER SYSTEM, or a configuration in
postgresql.conf?"
> Am Do., 6. Dez. 2018 um 01:21 Uhr schrieb bhargav kamineni <
> kbn98406@gmail.com>:
> > may i know the order in which postgres reads the configuration files like
> > conf , auto.conf , hba ?
The regular postgresql.conf file is read first, then
postgresql.auto.conf and then pg_hba.conf and pg_ident.conf. We can't
read pg_hba.conf/pg_ident.conf before reading postgresql.conf and
postgresql.auto.conf because their location is specified in
postgresql.conf/postgresql.auto.conf.
> > and how does postmaster forks postgres , can we see that forking process
> > in logfile ?
If you have log_connections enabled, we'll log the 'connection received'
message very shortly after fork'ing.
You could also enable DEBUG2 (or higher) to see the fork from the parent
process.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: order of reading the conf files
@ 2018-12-06 15:19 Thomas Kellerer <spam_eater@gmx.net>
parent: Stephen Frost <sfrost@snowman.net>
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Kellerer @ 2018-12-06 15:19 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Stephen Frost schrieb am 06.12.2018 um 15:52:
> The regular postgresql.conf file is read first, then
> postgresql.auto.conf and then pg_hba.conf and pg_ident.conf. We can't
> read pg_hba.conf/pg_ident.conf before reading postgresql.conf and
> postgresql.auto.conf because their location is specified in
> postgresql.conf/postgresql.auto.conf.
When are the .conf files read that are included from within "postgresql.conf"?
The manual is not clear about that.
Are they processed before "postgresql.auto.conf" or after?
Thomas
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: order of reading the conf files
@ 2018-12-06 15:23 Stephen Frost <sfrost@snowman.net>
parent: Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Frost @ 2018-12-06 15:23 UTC (permalink / raw)
To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-general@lists.postgresql.org
Greetings,
* Thomas Kellerer (spam_eater@gmx.net) wrote:
> Stephen Frost schrieb am 06.12.2018 um 15:52:
> > The regular postgresql.conf file is read first, then
> > postgresql.auto.conf and then pg_hba.conf and pg_ident.conf. We can't
> > read pg_hba.conf/pg_ident.conf before reading postgresql.conf and
> > postgresql.auto.conf because their location is specified in
> > postgresql.conf/postgresql.auto.conf.
>
> When are the .conf files read that are included from within "postgresql.conf"?
> The manual is not clear about that.
At the time we hit the 'include' line.
> Are they processed before "postgresql.auto.conf" or after?
postgresql.auto.conf is always last.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: order of reading the conf files
@ 2018-12-06 16:42 bhargav kamineni <kbn98406@gmail.com>
parent: Stephen Frost <sfrost@snowman.net>
0 siblings, 0 replies; 6+ messages in thread
From: bhargav kamineni @ 2018-12-06 16:42 UTC (permalink / raw)
To: sfrost@snowman.net; +Cc: spam_eater@gmx.net; pgsql-general@lists.postgresql.org
Thanks a lot Stephen.
On Thu, Dec 6, 2018 at 8:53 PM Stephen Frost <sfrost@snowman.net> wrote:
> Greetings,
>
> * Thomas Kellerer (spam_eater@gmx.net) wrote:
> > Stephen Frost schrieb am 06.12.2018 um 15:52:
> > > The regular postgresql.conf file is read first, then
> > > postgresql.auto.conf and then pg_hba.conf and pg_ident.conf. We can't
> > > read pg_hba.conf/pg_ident.conf before reading postgresql.conf and
> > > postgresql.auto.conf because their location is specified in
> > > postgresql.conf/postgresql.auto.conf.
> >
> > When are the .conf files read that are included from within
> "postgresql.conf"?
> > The manual is not clear about that.
>
> At the time we hit the 'include' line.
>
> > Are they processed before "postgresql.auto.conf" or after?
>
> postgresql.auto.conf is always last.
>
> Thanks!
>
> Stephen
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-12-06 16:42 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-12-06 07:20 order of reading the conf files bhargav kamineni <kbn98406@gmail.com>
2018-12-06 14:46 ` Rene Romero Benavides <rene.romero.b@gmail.com>
2018-12-06 14:52 ` Stephen Frost <sfrost@snowman.net>
2018-12-06 15:19 ` Thomas Kellerer <spam_eater@gmx.net>
2018-12-06 15:23 ` Stephen Frost <sfrost@snowman.net>
2018-12-06 16:42 ` bhargav kamineni <kbn98406@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox