Small problem with pg_ctl.

From: Keith Parks <emkxp01(at)mtcc(dot)demon(dot)co(dot)uk>
To: hackers(at)postgresql(dot)org
Subject: Small problem with pg_ctl.
Date: 2000-02-05 22:55:29
Message-ID: 200002052255.WAA11408@mtcc.demon.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've a problem with pg_ctl.

When attempting to start the postmaster I get :-

bash-2.03$ /usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start
postmaster successfully started up.
bash-2.03$ /usr/local/pgsql/bin/postmaster does not know where to find the
database system data. You must specify the directory that contains the database
system either by specifying the -D invocation option or by setting the PGDATA
environment variable.

No data directory -- can't proceed.

I think this small patch should fix it.

Keith.

*** src/bin/pg_ctl/pg_ctl.sh.orig Sat Feb 5 22:29:52 2000
--- src/bin/pg_ctl/pg_ctl.sh Sat Feb 5 22:30:55 2000
***************
*** 76,81 ****
--- 76,82 ----
-D)
shift
PGDATA="$1"
+ export PGDATA
;;
-p)
shift

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-02-05 23:27:28 Re: [HACKERS] Proposal for new SET variables for optimizer costs
Previous Message Keith Parks 2000-02-05 22:55:21 Solaris regression tests.