From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: bgwriter never dies |
Date: | 2004-02-26 18:01:07 |
Message-ID: | 200402261001.08135.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 Berkus
Aglio Database Solutions
San Francisco
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2004-02-26 18:19:23 | Re: [HACKERS] Collaboration Tool Proposal |
Previous Message | Joseph Tate | 2004-02-26 17:53:26 | Re: [HACKERS] Collaboration Tool Proposal |