Re: Newbie struggling to set $PGDATA

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Geoff Caplan <geoff(at)productivity(dot)co(dot)uk>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Newbie struggling to set $PGDATA
Date: 2001-04-25 16:50:48
Message-ID: 29508.988217448@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Geoff Caplan <geoff(at)productivity(dot)co(dot)uk> writes:
> I have tried setting it in my bash /etc/profile configuration file,
> and it shows up ok if I "echo $PGDATA" in the shell. But none of the
> postgres utilities such as "initdb" seem to be able to find it.

You probably forgot to say "export PGDATA"; without that it's just a
local variable in your shell.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-04-25 16:52:15 Re: SUM()ming a view's column
Previous Message postgres 2001-04-25 16:48:31 Table Creation Question.