Re: Stopping Postgres

From: David Mitchell <david(dot)mitchell(at)telogis(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Stopping Postgres
Date: 2005-07-14 21:53:30
Message-ID: 42D6DEDA.5050406@telogis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm using PG 8.0.1 on Gentoo Linux (kernel 2.6.10 SMP) on Pentium 4 w/ HT.

I run the following as root:

su postgres -c "pg_ctl stop -D /var/lib/postgresql/data -m fast"

Or with -m immediate. Some of the backends stop but others never
shutdown. Even if I do a killall postmaster (just with sigterm, not -9),
these backends hang around. The backends are currently executing queries
but the queries stop running at this point.

I'm not starting the server with pg_ctl, I run postmaster by hand.
Perhaps there is something in my init script that is to blame.

Cheers
David

Tom Lane wrote:
> David Mitchell <david(dot)mitchell(at)telogis(dot)com> writes:
>
>>What is the best way to quickly and reliably stop postgres? We've found
>>that pg_ctl doesn't work for us very well, frequently failing to
>>actually stop the postmaster (it times out and reports that it has
>>failed to stop). This is the same even if we use -m immediate.
>
>
> pg_ctl always works for me (and I use it several times a day ;-)).
> What PG version are you using, on what platform? Is it possible
> you've got permissions problems?
>
> regards, tom lane
>
>

--
David Mitchell
Software Engineer
Telogis

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Brenart 2005-07-14 21:58:36 Re: Case insensitive unique constraint
Previous Message Thomas F. O'Connell 2005-07-14 21:44:19 Re: ERROR: could not open relation