From: Scott Marlowe <scott.marlowe@gmail.com>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: failure on 'pg_ctl stop' command
Date: Thu, 11 Oct 2007 12:03:51 -0500
Message-ID: <dcc563d10710111003p1d0dc0b2k23c33ef77162fb6b@mail.gmail.com> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C03062CC5@egcrc-ex01.egcrc.org>
References: <FE44E0D7EAD2ED4BB2165071DB8E328C03062CC5@egcrc-ex01.egcrc.org>
On 10/11/07, Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
>
>
>
> Hi Everybody,
>
> I had a failure on stopping postgres.
> The command I issued was:
> >> pg_ctl stop -m s
>
> and its response was:
> >> waiting for server to shut
> down...............................................................
> failed
> >> pg_ctl: server does not shut down
>
> I repeated the same command and the response was identical.
> I proceeded to issue:
> >> pg_ctl stop -m f
>
> and this time it came back with:
> >> waiting for server to shut down.... done
> >> server stopped
>
> Would somebody please tell me what this means?
> Is it indicative of some trouble? What can/Should
> I do to remedy the situation?
Normally this means that you have clients connected to the db while
it's trying to shut down.
On the server, run
ps ax|grep postgres
and look for a client connected in IDLE state.
You can either disconnect all the clients, or use -m f, which will
disconnect them for you.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, tsakai@gallo.ucsf.edu
Subject: Re: failure on 'pg_ctl stop' command
In-Reply-To: <dcc563d10710111003p1d0dc0b2k23c33ef77162fb6b@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox