next up previous contents
Next: Creating and Deleting a Up: PostgresMiniManual Previous: Starting the DBMS   Contents

Shutting Down the DBMS

Before you log out, you should always make sure that the database is not still running. To see if the postmaster is still running you can issue the command:

\fbox{
\begin{minipage}{4.5in}
{\tt \$ pg\_ctl status}
\end{minipage} }

If the postmaster is still running you can shut it down with the command:

\fbox{
\begin{minipage}{4.5in}
{\tt \$ pg\_ctl stop}
\end{minipage} }

NOTE: As with the pg_ctl start command, if the PGDATA variable is not set it must be specified with the -D option for both the pg_ctl status and pg_ctl stop commands.



Timothy G Mauch 2003-11-05