Re: pgsql: rm_cleanup functions need to be allowed to write WAL entries.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: rm_cleanup functions need to be allowed to write WAL entries.
Дата
Msg-id 13172.1249832464@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: rm_cleanup functions need to be allowed to write WAL entries.  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: pgsql: rm_cleanup functions need to be allowed to write WAL entries.  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-committers
Simon Riggs <simon@2ndQuadrant.com> writes:
> I want to move in the direction of having two cleanup routines, one
> executed before recovery ends and one done afterwards, so it can write
> WAL. Perhaps these would be called rm_makesafe() and rm_repair(). Rough
> thinking at this stage.

> The rm_repair() would execute in a separate process once we're up.

Er, what's the point of that?  It would make life tremendously harder
for resource managers, which could no longer rely on tracking their
state locally within the startup process.  And AFAICS there is no
benefit to be had, compared to the existing plan of letting backends
run while the startup process is still active.


            regards, tom lane

В списке pgsql-committers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: rm_cleanup functions need to be allowed to write WAL entries.
Следующее
От: bmomjian@pgfoundry.org (User Bmomjian)
Дата:
Сообщение: pg-migrator - pg_migrator: Clarify which restrictions are 8.3 -> 8.4