Re: pg_subtrans keeps bloating up in the standby

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: pg_subtrans keeps bloating up in the standby
Дата
Msg-id AANLkTin4DmZxWh9uQm_J7aT8AHVS19vS0h21Q8g6Kbrw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_subtrans keeps bloating up in the standby  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: pg_subtrans keeps bloating up in the standby  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Aug 27, 2010 at 11:25 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> Hmm, agreed, seems like an oversight in hot standby. Before that, we didn't
> update pg_subtrans during recovery, so there was no point truncating it. But
> in hot standby, we do update it, so we need to truncate it too.

Yes. The attached patch changes a restartpoint so that it truncates pg_subtrans
when hot standby is enabled. When it's disabled, we need to do nothing because,
in that case, pg_subtrans is not updated during recovery and StartupSUBTRANS()
is not called before a restartpoint.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: pg_subtrans keeps bloating up in the standby
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: CopyReadLineText optimization revisited