Check that a promoted standby keeps its 8-byte OID counter The counter reaches a standby through XLOG_NEXTOID and checkpoint records. This commit adds a test to move the next OID past the 2^32 limit on a primary and read it back from the promoted standby. This reuses the same trick as some of the previous tests, with a pg_resetwal command setting the next OID to be larger than 2^32, combined with a check based on pg_control_checkpoint().
This closes a testing gap of cb298616463d regarding the replay of XLOG_NEXTOID, where this WAL record has been updated to pass down an Oid8 value. By default, regression tests would use OIDs way below the UINT32_MAX limit. Author: Rui Zhao <[email protected]> Discussion: https://postgr.es/m/CAHWVJhGkb1n_QSS4M=pkjd5hhcwk3kxpfwvxorvlzag3j+2...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1cd8669179f41b939c08e84ddddd3bdce0e095ea Modified Files -------------- src/test/recovery/t/004_timeline_switch.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
