Re: [GENERAL] Unable to get postgres running after long time no vacuum

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Leon Mergen" <leon(at)solatis(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Unable to get postgres running after long time no vacuum
Date: 2007-07-08 16:11:18
Message-ID: 507.1183911078@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

"Leon Mergen" <leon(at)solatis(dot)com> writes:
>> Perhaps you are not shutting down the standalone mode cleanly after
>> the vacuum?

> Okay, that was obviously it -- I didn't realize I needed to send a
> crtl+D signal to the server when in single user mode to shut it down,
> and figured that any uncommitted changes would be replayed when the
> database was started.

Most of them would be, but the one you actually needed here (the update
of pg_database.datfrozenxid) is treated as a non-WAL-logged action in
pre-8.2 releases :-( ... so you had to have a checkpoint to ensure it
got out to disk.

It's actually not that easy to get out of the single-user mode without
it doing a checkpoint. I suppose you must have either SIGQUIT or
SIGKILL'd it. While there's nothing we can do about SIGKILL, it strikes
me that it might be a good safety measure if single-user mode treated
SIGQUIT the same as SIGTERM, ie, non-panic shutdown. Comments anyone?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-07-08 16:42:17 Re: [GENERAL] Unable to get postgres running after long time no vacuum
Previous Message Michael Glaesemann 2007-07-08 15:54:02 Re: feature requests

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-07-08 16:42:17 Re: [GENERAL] Unable to get postgres running after long time no vacuum
Previous Message Heikki Linnakangas 2007-07-08 08:49:08 Re: Implementation of new operators inside the PostgreSQL