From: Stephen Frost <sfrost@snowman.net>
To: Rene Romero Benavides <rene.romero.b@gmail.com>
Cc: kbn98406@gmail.com
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: order of reading the conf files
Date: Thu, 6 Dec 2018 09:52:30 -0500
Message-ID: <20181206145230.GJ3415@tamriel.snowman.net> (raw)
In-Reply-To: <CANaGW0_9_vfykA+TXRpv5q-PCmQs1OvozmN1wLbksmcUeiFcRA@mail.gmail.com>
References: <CAE=Y5eANXg0p_KOZYxxBJ19+Jwg5UiMRFXPUuB3mjzunzQSaoQ@mail.gmail.com>
<CANaGW0_9_vfykA+TXRpv5q-PCmQs1OvozmN1wLbksmcUeiFcRA@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sfrost@snowman.net, rene.romero.b@gmail.com, kbn98406@gmail.com
Subject: Re: order of reading the conf files
In-Reply-To: <20181206145230.GJ3415@tamriel.snowman.net>
References: <CAE=Y5eANXg0p_KOZYxxBJ19+Jwg5UiMRFXPUuB3mjzunzQSaoQ@mail.gmail.com> <CANaGW0_9_vfykA+TXRpv5q-PCmQs1OvozmN1wLbksmcUeiFcRA@mail.gmail.com> <20181206145230.GJ3415@tamriel.snowman.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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