pg_subtrans keeps bloating up in the standby

Поиск
Список
Период
Сортировка
Искать
От
Fujii Masao
Тема
pg_subtrans keeps bloating up in the standby
Дата
Msg-id
AANLkTi=x1Uhfatr9OTTXjp2pYLKZpHdFamGKfJYqSw2G@mail.gmail.com
Список
Дерево обсуждения
pg_subtrans keeps bloating up in the standby Fujii Masao <masao.fujii@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 Fujii Masao <masao.fujii@gmail.com>
Re: pg_subtrans keeps bloating up in the standby Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_subtrans keeps bloating up in the standby Fujii Masao <masao.fujii@gmail.com>
Re: pg_subtrans keeps bloating up in the standby Josh Berkus <josh@agliodbs.com>
Re: pg_subtrans keeps bloating up in the standby Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_subtrans keeps bloating up in the standby Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: pg_subtrans keeps bloating up in the standby Simon Riggs <simon@2ndQuadrant.com>
Re: pg_subtrans keeps bloating up in the standby Simon Riggs <simon@2ndQuadrant.com>
Re: pg_subtrans keeps bloating up in the standby Fujii Masao <masao.fujii@gmail.com>
Hi,

I received the off-list email reporting that pg_subtrans keeps bloating up
in the standby, from Harald (Thanks!). I investigated this issue and found
that the standby doesn't truncate pg_subtrans at all even though HS keeps
extending it. In the master, a checkpoint calls TruncateSUBTRANS() and
truncate old pg_subtrans entries, but in the standby, a restartpoint doesn't
do that. And I found the following comment in CreateRestartPoint():
/* * Currently, there is no need to truncate pg_subtrans during recovery. If * we did do that, we will need to have called StartupSUBTRANS() already * and then TruncateSUBTRANS() would go here. */

I'm not sure why there is no need to truncate pg_subtrans during recovery.
To fix the issue, we should make a restartpoint call TruncateSUBTRANS().
Thought?

Regards,

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

В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Heikki Linnakangas
Дата:
FAQ