pg_ctl restart? - Mailing list pgsql-novice

From Chris Smith
Subject pg_ctl restart?
Date
Msg-id 01040408234900.01008@pc163.cybersydney.com.au
Whole thread Raw
In response to Re: En: Error during update from version 6.5.3 to version 7.03  ("ADBAAMD" <adba.amdocs@bell.ca>)
List pgsql-novice
Hey all,

I was playing around with pg_ctl last night, 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@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@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@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@elrond:~/bin$

pgsql-novice by date:

Previous
From: "ADBAAMD"
Date:
Subject: Re: En: Error during update from version 6.5.3 to version 7.03
Next
From: "Schnack, Malte"
Date:
Subject: Replicated PostgreSQL-Databases