Thread: pgsql: Correctly initialise shared recoveryLastRecPtr in recovery.
Correctly initialise shared recoveryLastRecPtr in recovery. Previously we used ReadRecPtr rather than EndRecPtr, which was not a serious error but caused pg_stat_replication to report incorrect replay_location until at least one WAL record is replayed. Fujii Masao Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/5530623d0326e96e40b8d54275da256ca0fb6856 Modified Files -------------- src/backend/access/transam/xlog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
On Fri, Jan 13, 2012 at 10:05 PM, Simon Riggs <simon@2ndquadrant.com> wrote: > Correctly initialise shared recoveryLastRecPtr in recovery. > Previously we used ReadRecPtr rather than EndRecPtr, which was > not a serious error but caused pg_stat_replication to report > incorrect replay_location until at least one WAL record is replayed. Thanks for the commit! This needs to be backported to 9.1 and 9.0 because they also have the same problem. Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center