Re: bgwriter never dies

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: bgwriter never dies
Дата
Msg-id 200402261001.08135.josh@agliodbs.com
обсуждение исходный текст
Ответ на bgwriter never dies  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: bgwriter never dies  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Joseph Tate
Дата:
Сообщение: Re: Collaboration Tool Proposal
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Collaboration Tool Proposal