<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/pgctl-ref.sgml,v 1.3 2000/05/23 21:46:57 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/ref/Attic/pgctl-ref.sgml,v 1.4 2000/07/21 00:42:34 momjian Exp $
Postgres documentation
-->
To start up <application>postmaster</application>:
<programlisting>
-> pg_ctl start
+$ pg_ctl start
</programlisting>
</para>
<application>postmaster</application>, blocking until
postmaster comes up is:
<programlisting>
-> pg_ctl -w start
+$ pg_ctl -w start
</programlisting>
</para>
try:
<programlisting>
-> pg_ctl -p /usr/local/pgsq/bin/postmaster start
+$ pg_ctl -p /usr/local/pgsq/bin/postmaster start
</programlisting>
</para>
running without <function>fsync</function>, use:
<programlisting>
-> pg_ctl -o "-o -F -p 5433" start
+$ pg_ctl -o "-o -F -p 5433" start
</programlisting>
</para>
</refsect2>
<para>
<programlisting>
-> pg_ctl stop
+$ pg_ctl stop
</programlisting>
stops postmaster. Using the <option>-m</option> switch allows one
form:
<programlisting>
-> pg_ctl restart
+$ pg_ctl restart
</programlisting>
</para>
waiting for it to shut down and to come up:
<programlisting>
-> pg_ctl -w restart
+$ pg_ctl -w restart
</programlisting>
</para>
To restart using port 5433 and disabling fsync after restarting:
<programlisting>
-> pg_ctl -o "-o -F -p 5433" restart
+$ pg_ctl -o "-o -F -p 5433" restart
</programlisting>
</para>
</refsect2>
To get status information from postmaster:
<programlisting>
-> pg_ctl status
+$ pg_ctl status
</programlisting>
</para>