Re: Newbie struggling to set $PGDATA - Mailing list pgsql-general

From Tom Lane
Subject Re: Newbie struggling to set $PGDATA
Date
Msg-id 29508.988217448@sss.pgh.pa.us
Whole thread Raw
In response to Newbie struggling to set $PGDATA  (Geoff Caplan <geoff@productivity.co.uk>)
List pgsql-general
Geoff Caplan <geoff@productivity.co.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

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: Joined table view - multiple delete action rule
Next
From: Tom Lane
Date:
Subject: Re: I can not create Index on a feild by type 'timestmp'!