pg_ctl restart?

From: Chris Smith <csmith(at)squiz(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: pg_ctl restart?
Date: 2001-04-03 22:19:37
Message-ID: 01040408234900.01008@pc163.cybersydney.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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$

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Jeff Kallestad 2001-04-04 03:06:15 Conditional statements IF , ELSE, END IF
Previous Message Tom Brown 2001-04-03 21:16:04 Postmaster hangs until Ctrl-C