Re: pg_subtrans keeps bloating up in the standby
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>, "Kolb, Harald (NSN - DE/Munich)" <harald.kolb@nsn.com>
Date: 2010-08-27T15:54:51Z
Lists: pgsql-hackers
Attachments
- subtrans_v1.patch (text/x-diff) patch v1
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