Re: bgwriter never dies - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: bgwriter never dies
Date
Msg-id 200402261001.08135.josh@agliodbs.com
Whole thread Raw
In response to bgwriter never dies  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: bgwriter never dies  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom,

> > ... In the case of a postmaster crash, I think
> > something in the system is so wrong that I'd prefer an immediate shutdown.
>
> Surely some other people have opinions on this?  Hello out there?

Well, my opinion is based on the question, can we restart the postmaster if it
dies and the other backends are still running?     If not, why are we even
discussing this?

Otherwise, as someone who does support for a number of high-demand databases,
I'd like to give you the rules that such applications need to have enforced
in order to continue using Postgres:

1) If any transaction is reported as complete to the client, it must be
written to disk and not rolled back, even in the event of a sudden power
outage.
2) If any transaction is *not* reported as complete, except in split-second
timing cases, it should be rolled back.  Always.

Basically, in high-demand situations where one expects occasional failures due
to load, one depends on the application log, the syslog and the transaction
log being in synch.   Otherwise on restart one doesn't know what has or
hasn't been committed.

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-hackers by date:

Previous
From: Joseph Tate
Date:
Subject: Re: Collaboration Tool Proposal
Next
From: Josh Berkus
Date:
Subject: Re: Collaboration Tool Proposal