Geoff Caplan wrote:
 
  >Please help out a Linx/Postgres newbie.
  >
  >I simply want to set the $PGDATA environmental variable, but can't
  >figure out how. The docs assume you already know...
  >
  >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.
  >
  >What don't I understand? I have already checked the docs/GreatBridge
  >manual/faqs/archive, so I would very much appreciate some help.
 
Maybe you need to export it.  Unless you export a variable, it remains
local to the shell where you define it.

PGDATA=/path/to/data
export PGDATA


or

export PGDATA=/path/to/data


-- 
Oliver Elphick                                [EMAIL PROTECTED]
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Nay, in all these things we are more than conquerors 
      through him that loved us."    Romans 8:37 



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to