pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Christophe Weis <jcweis@melix.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: unable to pass variable PGDATA2 into server environment
Date: Thu, 01 Jul 2004 13:55:19 -0400
Message-ID: <29053.1088704519@sss.pgh.pa.us> (raw)
In-Reply-To: <20040701162349.GA1241@max.my.domain>
References: <20040701162349.GA1241@max.my.domain>

Jean-Christophe Weis <jcweis@melix.net> writes:
> The variable PGDATA2 is set and marked for export in the root shell where I
> start the server, but it is not passed into the server's environment.

No, because the start script is going to su to the postgres account,
and su is going to reset the environment.  The usual advice for doing
this sort of thing is to set the environment variable in the postgres
user's .profile file.  That way the postmaster has it, and you also
have it if you manually su to postgres.

(This whole benighted environment-variable scheme is gone in CVS tip,
thank goodness.)

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <29053.1088704519@sss.pgh.pa.us>
Permalink:  ../29053.1088704519@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29053.1088704519@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jcweis@melix.net
  Subject: Re: unable to pass variable PGDATA2 into server environment
  In-Reply-To: <29053.1088704519@sss.pgh.pa.us>
  References: <20040701162349.GA1241@max.my.domain> <29053.1088704519@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