Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUv12-0002m0-Q2 for pgsql-general@arkaria.postgresql.org; Thu, 06 Dec 2018 14:52:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gUv10-00015Q-Ck for pgsql-general@arkaria.postgresql.org; Thu, 06 Dec 2018 14:52:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUv10-00010W-1f for pgsql-general@lists.postgresql.org; Thu, 06 Dec 2018 14:52:34 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gUv0x-0004aq-4N for pgsql-general@lists.postgresql.org; Thu, 06 Dec 2018 14:52:32 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6CD7B5F7A9; Thu, 6 Dec 2018 09:52:30 -0500 (EST) Date: Thu, 6 Dec 2018 09:52:30 -0500 From: Stephen Frost To: Rene Romero Benavides Cc: kbn98406@gmail.com, pgsql-general Subject: Re: order of reading the conf files Message-ID: <20181206145230.GJ3415@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lV9ZKoZ5teyzmDY3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lV9ZKoZ5teyzmDY3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --lV9ZKoZ5teyzmDY3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJcCTeuAAoJEO1sijiDR2RVg2IQAKdXw/daoJIFvKcrL+j7TCpl oVWaMPOfWMJHRLGQWb0TNS+LoUBqwTw6eO5BOt9/U8aVPLSdFwxommbrIM/nmCPr 3JXVv6850YoYA6JZgwEm0sEhNozSk0z1AXeBeEZAO04Hgg2bYE9fZokhyhnTtjD/ DUdsxIL9WFd5C1meIS5rN8e2Fn+0FktMaB8usB9qXA6aUbJ71f7s7vHfcCcfOREr frp8EIJvNYRcuIGrdHAcrR9/yYjl7N7dzd2qkXPU8WEUG3roPMfzkNr1wk2SpTtP Ex9dWVM1/BYQ9PJTrKNwbVRMnY7Us4Gg/fKXYgjZlo4XmRpnh+PWN5qh8gD1L9Tc ywXly5G43ALGYOMbIhNAN8e80YCPIeuSDm/+i83nRQBewQZUp2pHJ1pTjUadMl7u pWtQLcc7ytNPBpdboaTzw2KUDvbFh+1TcGQayPGYj+xugB1/MS1kC/gJqqIl0lUl FG1aziOCHOOUkvmqzgSsbEfvRbR2+gRydCirC6WGzkGjuNe0dEUCTq40Yt1iNZZr qf7T6QN5LF8OAT0APNs6NhIdOXjMgOxHpQS+eNNzXEvYKpcV1GwJrM7JWGZtFDwf +W/OMWfYUuH8vzMhgdVuxxaWwChDg/XTYy5IMX8xYvOoDloiwUNQV7qlT+uzZcZV F1z7vX/5PMFJMn8+kYxi =/lJy -----END PGP SIGNATURE----- --lV9ZKoZ5teyzmDY3--