PG_CTL(1) PostgreSQL Server Applications PG_CTL(1) NAME pg_ctl - PostgreSQL SYNOPSIS pg_ctl start [ -w ] [ -s ] [ -D datadir ] [ -l filename ] [ -o options ] [ -p path ] pg_ctl stop [ -W ] [ -s ] [ -D datadir ] [ -m s[mart] | f[ast] | i[mmediate] ] pg_ctl restart [ -w ] [ -s ] [ -D datadir ] [ -m s[mart] | f[ast] | i[mmediate] ] [ -o options ] pg_ctl reload [ -s ] [ -D datadir ] pg_ctl status [ -D datadir ] DESCRIPTION pg_ctl PostgreSQL postmaster pg_ctl start /dev/null -l pg_ctl pg_ctl postmaster shell stop -m "Smart" "Fast" "Immediate" restart postmaster reload postmaster SIGHUP postgresql.conf, pg_hba.conf status PID OPTIONS -D datadir PGDATA -l filename filename umask 077 -m mode mode smart, fast, immediate -o options postmaster -p path postmaster postmaster pg_ctl postmaster -s -w 60 PID psql -l pg_ctl psql PGPORT postgresql.conf PostgreSQL 5432 -W ENVIRONMENT PGDATA PGPORT psql(1) -w postmaster(1). FILES postmaster.pid pg_ctl postmaster.opts.default pg_ctl start postmaster -o postmaster.opts pg_ctl start postmaster -o status postgresql.conf psql start -w NOTES EXAMPLES STARTING THE SERVER $ pg_ctl start $ pg_ctl -w start postmaster 5433 fsync $ pg_ctl -o "-F -p 5433" start STOPPING THE SERVER $ pg_ctl stop -m -w-m RESTARTING THE SERVER postmaster pg_ctl postmaster $ pg_ctl restart $ pg_ctl -w restart 5433 fsync $ pg_ctl -o "-F -p 5433" restart SHOWING THE SERVER STATUS pg_ctl $ pg_ctl status pg_ctl: postmaster is running (pid: 13718) Command line was: /usr/local/pgsql/bin/postmaster '-D' '/usr/local/pgsql/data' '-p' '5433' '-B' '128' SEE ALSO postmaster(1) Postgresql man man https://github.com/man-pages-zh/manpages- zh Application 2003-11-02 PG_CTL(1)