Re: postmaster shutdown failed

From: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
To: Durai raj <mail_714(at)yahoo(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: postmaster shutdown failed
Date: 2004-05-21 05:09:59
Message-ID: 200405202309.59461.pgsql@bluepolka.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday May 20 2004 10:11, Durai raj wrote:
> When I stop the postmaster in another session or in
> terminal, I got the following error:
>
> $ pg_ctl -D /var/opt/iexpress/postgresql stop
> waiting for postmaster to shut
> down................................................................
> failed
> pg_ctl: postmaster does not shut down
> $
>
> Is there any other way to shutdown in this situation?
> (Or)
> How to know whether database is accessed or not?
> (Or)
> How to shutdown the postmaster safely from the above
> situation?

You probably have an open transaction in your psql session which prevents
the "smart" shutdown from completing. You can either finish your
transactions (for smart shutdown) or you can roll them back (with "fast"
shutdown). See the manual ... for 7.3, it's

http://www.postgresql.org/docs/7.3/static/postmaster-shutdown.html

and also the man page for pg_ctl options to invoke smart/fast/immediate
shutdowns.

HTH.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dirk Försterling 2004-05-21 05:22:10 Re: Is Linux 2.6.5 kernel good enough for production?
Previous Message Ed L. 2004-05-21 04:27:12 Re: Am I locking more than I need to?