Re: postmaster does not shut down - Mailing list pgsql-novice

From Tom Lane
Subject Re: postmaster does not shut down
Date
Msg-id 10278.1083384480@sss.pgh.pa.us
Whole thread Raw
In response to postmaster does not shut down  (Jeff Deroshia <jeff@hal.physast.uga.edu>)
List pgsql-novice
Jeff Deroshia <jeff@hal.physast.uga.edu> writes:
> I'm running PostgreSQL 7.4 on Mac OS X server 10.3.3.  When I try
> pg_ctl stop as the postgres user, it times out waiting for postmaster
> to shut down, gives a failed error, then: pg_ctl: postmaster does not
> shut down

> The only thing I'm able to do is kill -9 <pid> then rm the pid file.
> This is not very good.  Anyone know what would keep postmaster from
> shutting down?

A persistent client connection.  If you want to kick out active clients,
you need (IIRC) "-m fast" option to pg_ctl stop.

In any case, "kill -9" on the postmaster is a particularly horrid idea
on OSX, because there's no way to clean up the leftover shared memory
segment (since Apple doesn't provide ipcrm).  My experience is that you
have to reboot to get rid of the old shmem seg if you do this.  Pretend
you never learned that command, and find an alternative.

            regards, tom lane

pgsql-novice by date:

Previous
From: Adam Witney
Date:
Subject: Re: Finding out db size...
Next
From: Martin Hampl
Date:
Subject: Re: Query does not use index