"pg_ctl restart" in 7.1.2

From: teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=)
To: pgsql-general(at)postgresql(dot)org
Subject: "pg_ctl restart" in 7.1.2
Date: 2001-05-28 18:02:27
Message-ID: xuyr8x9gxn0.fsf@halden.devel.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

"pg_ctl restart" seems to not work as documented in postgresql 7.1.2.

bash-2.04$ /usr/bin/pg_ctl restart -w -D /var/lib/pgsql/data -m fast
waiting for postmaster to shut down......done
postmaster successfully shut down
/usr/bin/postmaster: invalid argument -- '-D'
Try '/usr/bin/postmaster --help' for more information.
waiting for postmaster to
start................................................................failed
pg_ctl: postmaster does not start
bash-2.04$

(it was ctrl-C'ed after taking forever in "start...")

The documentation says this is a valid combination, or am I missing something?

[root(at)xyzzy2 data]# pg_ctl --help
pg_ctl is a utility to start, stop, restart, and report the status
of a PostgreSQL server.

Usage:
pg_ctl start [-w] [-D DATADIR] [-s] [-l FILENAME] [-o "OPTIONS"]
pg_ctl stop [-W] [-D DATADIR] [-s] [-m SHUTDOWN-MODE]
pg_ctl restart [-w] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] [-o "OPTIONS"]
pg_ctl status [-D DATADIR]

Common options:
-D DATADIR Location of the database storage area
-s Only print errors, no informational messages
-w Wait until operation completes
-W Do not wait until operation completes
(The default is to wait for shutdown, but not for start or restart.)

If the -D option is omitted, the environment variable PGDATA is used.

Options for start or restart:
-l FILENAME Write (or append) server log to FILENAME. The
use of this option is highly recommended.
-o OPTIONS Command line options to pass to the postmaster
(PostgreSQL server executable)
-p PATH-TO-POSTMASTER Normally not necessary

Options for stop or restart:
-m SHUTDOWN-MODE May be 'smart', 'fast', or 'immediate'

Shutdown modes are:
smart Quit after all clients have disconnected
fast Quit directly, with proper shutdown
immediate Quit without complete shutdown; will lead
to recovery run on restart

Report bugs to <pgsql-bugs(at)postgresql(dot)org>.
[root(at)xyzzy2 data]#
--
Trond Eivind Glomsrød
Red Hat, Inc.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-28 19:22:52 Re: "pg_ctl restart" in 7.1.2
Previous Message Tom Lane 2001-05-28 15:34:00 Re: repeated pointless memmove() calls in pqReadData()

Browse pgsql-general by date

  From Date Subject
Next Message Linh Luong 2001-05-28 18:16:21 Re: Seq Scan
Previous Message Norman J. Clarke 2001-05-28 17:56:50 Re: 7.1.1 backend crashes on updates to very large text columns