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 1fkVBq-0000R3-9D for pgsql-general@arkaria.postgresql.org; Tue, 31 Jul 2018 13:59:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkVBo-0000DT-Lx for pgsql-general@arkaria.postgresql.org; Tue, 31 Jul 2018 13:59:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkVBo-0000DJ-Ds for pgsql-general@lists.postgresql.org; Tue, 31 Jul 2018 13:59:52 +0000 Received: from mail1.sig.com ([141.162.101.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkVBk-0006Oo-4J for pgsql-general@postgresql.org; Tue, 31 Jul 2018 13:59:51 +0000 X-SIG-Detect: None X-IronPort-AV: E=Sophos;i="5.51,427,1526356800"; d="scan'208";a="47920271" From: "Lu, Dan" To: Tom Lane CC: "David G. Johnston" , "Alvaro Aguayo Garcia-Rada" , "pgsql-general@postgresql.org" Subject: RE: Question on postgresql.conf Thread-Topic: Question on postgresql.conf Thread-Index: AdQoM4OZLpZcnxYNQBS6biayrso2N+hhTKzMl5+zkAD//+ThwIAAojKAgABBOOA= Date: Tue, 31 Jul 2018 13:59:43 +0000 Message-ID: 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> In-Reply-To: <7209.1533045115@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.10.24.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks for your reply. I can start the database like this: pg_ctl start -D /hostname/postgres/data= -l /hostname/postgres/log My data directory has the following file: postgres.cnf Content of the postgres.cnf contains only 1 line: include /nfs/global/postgres-.cnf Question: Can be a variable like `hostname` derived from Unix shell or I h= ave to hardcode the name of the host like " include /nfs/global/postgres-ho= st123.cnf -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Tuesday, July 31, 2018 9:52 AM To: Lu, Dan Cc: David G. Johnston ; Alvaro Aguayo Garcia-Ra= da ; pgsql-general@postgresql.org Subject: Re: Question on postgresql.conf "Lu, Dan" writes: > Say, I want to put the config file on a share drive so all my postgres co= nfiguration file can be seen in one location. > /nfs/global/postgres-.cnf What I'd do is make each data directory's postgresql.conf contain just this= : include /nfs/global/postgres-.cnf and then just start the postmaster without any weird switches. In this way you will avoid breaking PG-specific tools that expect to find t= he config file at its standard location. regards, tom lane ________________________________ IMPORTANT: The information contained in this email and/or its attachments i= s confidential. If you are not the intended recipient, please notify the se= nder immediately by reply and immediately delete this message and all its a= ttachments. Any review, use, reproduction, disclosure or dissemination of t= his message or any attachment by an unintended recipient is strictly prohib= ited. Neither this message nor any attachment is intended as or should be c= onstrued as an offer, solicitation or recommendation to buy or sell any sec= urity or other financial instrument. Neither the sender, his or her employe= r nor any of their respective affiliates makes any warranties as to the com= pleteness or accuracy of any of the information contained herein or that th= is message or any of its attachments is free of viruses.