Re: lastOverflowedXid does not handle transaction ID wraparound

Nikolay Samokhvalov <nikolay@samokhvalov.com>

From: Nikolay Samokhvalov <nikolay@samokhvalov.com>
To: pgsql-hackers@lists.postgresql.org
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Date: 2021-11-02T06:54:31Z
Lists: pgsql-hackers
The following review has been posted through the commitfest application:
make installcheck-world:  tested, failed
Implements feature:       tested, failed
Spec compliant:           not tested
Documentation:            not tested

The fix is trivial and works as expected, solving the problem

Tested, described details of the testing in the email thread.

Commits

  1. Reset lastOverflowedXid on standby when needed

  2. Fix variable shadowing in procarray.c.

  3. Move InRecovery and standbyState global vars to xlogutils.c.