On Wed, Jun 2, 2010 at 8:40 PM, Heikki Linnakangas <heikki.linnakan...@enterprisedb.com> wrote: > On 02/06/10 06:23, Fujii Masao wrote: >> >> On Mon, May 31, 2010 at 7:17 PM, Fujii Masao<masao.fu...@gmail.com> >> wrote: >>> >>> 4) Change it so that checkpoint_segments takes effect in standby mode, >>> but not during recovery otherwise >> >> I revised the patch to achieve 4). This will enable checkpoint_segments >> to trigger a restartpoint like checkpoint_timeout already does, in >> standby mode (i.e., streaming replication or file-based log shipping). > > Hmm, XLogCtl->Insert.RedoRecPtr is not updated during recovery, so this > doesn't work.
Oops! I revised the patch, which changes CreateRestartPoint() so that it updates XLogCtl->Insert.RedoRecPtr. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
checkpoint_segments_during_recovery_v3.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers