> Possible fix: > > The pg_rewind use pg_current_wal_insert_lsn() to set the min recovery point, > which calls > GetXLogInsertRecPtr() and returns the latest wal insert pointer. Maybe we > should use > GetXLogInsertEndRecPtr() which returns the latest wal record end pointer. > > Thoughts?
Another solution: If minRecoveryPoint is just after a xlog page header, we can move it to the begin of the page. It's safe because we just skip the xlog page header. Do I miss something? Attach a patch done like this. -- Regards, ChangAo Chen
v1-0001-Introduce-GetEffectiveMinRecoveryPoint.patch
Description: Binary data
