pg_ctl restart?

From: Chris Smith <csmith(at)squiz(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: pg_ctl restart?
Date: 2001-04-04 22:43:22
Message-ID: 01040508432200.01083@pc163.cybersydney.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey all,

I've been playing around with pg_ctl, and noticed that for pg_ctl
restart it doesn't seem to like the -D parameter the way I'm doing it..

What's the correct way? (This is for v7.1B4).

pgsql(at)elrond:~/bin$ ./pg_ctl restart -D /usr/local/pgsql/data -s -m fast
pg_ctl: cannot find /usr/local/pgsql/data/postmaster.pid
Is postmaster running?
starting postmaster anyway
pgsql(at)elrond:~/bin$ /usr/local/pgsql/bin/postmaster: invalid argument -- '-D'
Try '/usr/local/pgsql/bin/postmaster --help' for more information.

I do it without the -D parameter & a correct error message appears....

pgsql(at)elrond:~/bin$ ./pg_ctl restart -s -m fast
pg_ctl: no database directory or environment variable $PGDATA is specified
Try 'pg_ctl --help' for more information.
pgsql(at)elrond:~/bin$

The other switches for pg_ctl work (start & stop), just restart having the
problems...

--------------
Chris Smith
http://www.squiz.net

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-04-04 22:44:03 Re: Postgres 7.1RC1 on Solaris 7
Previous Message Phuong Ma 2001-04-04 22:12:27 performance inconsistency