pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lu, Dan <Dan.Lu@sig.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Alvaro Aguayo Garcia-Rada <aaguayo@opensysperu.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Question on postgresql.conf
Date: Tue, 31 Jul 2018 10:21:33 -0400
Message-ID: <10918.1533046893@sss.pgh.pa.us> (raw)
In-Reply-To: <ffd0c58838c44259b7c83e86256c4677@msx.bala.susq.com>
References: <364bc889f8634b5a811a603a3ff725df@msx.bala.susq.com>
	<1725191888.48995.1533013367672.JavaMail.zimbra@adriana.opensysperu.com>
	<CAKFQuwZkPcc_Ld-OLN8+9GP0K+3rD9MYiV9__eLdTF7008YFHw@mail.gmail.com>
	<873ebcfde31c4aa5ad71bd2f8225a311@msx.bala.susq.com>
	<7209.1533045115@sss.pgh.pa.us>
	<ffd0c58838c44259b7c83e86256c4677@msx.bala.susq.com>

"Lu, Dan" <Dan.Lu@sig.com> writes:
> Question:
> Can <hostname> be a variable like `hostname` derived from Unix shell or I have to hardcode the name of the host like " include /nfs/global/postgres-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




view thread (18+ messages)  latest in thread

Message-ID: <10918.1533046893@sss.pgh.pa.us>
Permalink:  ../10918.1533046893@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10918.1533046893@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, Dan.Lu@sig.com, david.g.johnston@gmail.com, aaguayo@opensysperu.com
  Subject: Re: Question on postgresql.conf
  In-Reply-To: <10918.1533046893@sss.pgh.pa.us>
  References: <364bc889f8634b5a811a603a3ff725df@msx.bala.susq.com> <1725191888.48995.1533013367672.JavaMail.zimbra@adriana.opensysperu.com> <CAKFQuwZkPcc_Ld-OLN8+9GP0K+3rD9MYiV9__eLdTF7008YFHw@mail.gmail.com> <873ebcfde31c4aa5ad71bd2f8225a311@msx.bala.susq.com> <7209.1533045115@sss.pgh.pa.us> <ffd0c58838c44259b7c83e86256c4677@msx.bala.susq.com> <10918.1533046893@sss.pgh.pa.us>

* 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