Running Postmaster - PGDATA Variable

From: Mike C <mike(at)stonebow(dot)otago(dot)ac(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Running Postmaster - PGDATA Variable
Date: 2001-07-26 23:40:12
Message-ID: a05100e01b7865a0a45da@[139.80.76.58]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

>You must specify the directory that contains the database system either by specifying the -D >invocation option or by setting the PGDATA environment variable.

Where can I set this variable so I don't get this message all the time. I did type

[localhost:/usr/local] postgres% postmaster -D /usr/local/pgsql/data but got this message:
Lock file "/usr/local/pgsql/data/postmaster.pid" already exists.
--

Regards
Mike C

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-07-26 23:42:54 Re: Bad timestamp external representation
Previous Message Nigel Gilbert 2001-07-26 22:49:46 getInherits(): SELECT failed.