Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkVWw-0001qD-1K for pgsql-general@arkaria.postgresql.org; Tue, 31 Jul 2018 14:21:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkVWu-0007I6-D9 for pgsql-general@arkaria.postgresql.org; Tue, 31 Jul 2018 14:21:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkVWu-0007Hz-1g for pgsql-general@lists.postgresql.org; Tue, 31 Jul 2018 14:21:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkVWr-0008Q1-Iz for pgsql-general@postgresql.org; Tue, 31 Jul 2018 14:21:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6VELXfG010919; Tue, 31 Jul 2018 10:21:33 -0400 From: Tom Lane To: "Lu, Dan" cc: "David G. Johnston" , "Alvaro Aguayo Garcia-Rada" , "pgsql-general@postgresql.org" Subject: Re: Question on postgresql.conf In-reply-to: References: <364bc889f8634b5a811a603a3ff725df@msx.bala.susq.com> <1725191888.48995.1533013367672.JavaMail.zimbra@adriana.opensysperu.com> <873ebcfde31c4aa5ad71bd2f8225a311@msx.bala.susq.com> <7209.1533045115@sss.pgh.pa.us> Comments: In-reply-to "Lu, Dan" message dated "Tue, 31 Jul 2018 13:59:43 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10917.1533046893.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 31 Jul 2018 10:21:33 -0400 Message-ID: <10918.1533046893@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Lu, Dan" writes: > Question: > Can be a variable like `hostname` derived from Unix shell or = I have to hardcode the name of the host like " include /nfs/global/postgre= s-host123.cnf Nope, you'd have to hard-code it. Of course, you could have the startup script that you intended to set the env variable just overwrite $PGDATA/postgresql.conf with the right thing. regards, tom lane