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$