Re: Bug in ProcArrayApplyRecoveryInfo for snapshots crossing 4B, breaking replicas
Tomas Vondra <tomas.vondra@enterprisedb.com>
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: "Bossart, Nathan" <bossartn@amazon.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-01-27T19:33:46Z
Lists: pgsql-hackers
On 1/26/22 23:54, Michael Paquier wrote: > On Wed, Jan 26, 2022 at 07:31:00PM +0100, Tomas Vondra wrote: >> I actually tried doing that, but I was not very happy with the result. The >> test has to call pg_resetwal, but then it also has to fake pg_xact data and >> so on, which seemed a bit ugly so did not include the test in the patch. > > Indeed, the dependency to /dev/zero is not good either. The patch > logic looks good to me. OK, I've pushed the patch. We may consider adding a TAP test later, if we find a reasonably clean approach. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Fix ordering of XIDs in ProcArrayApplyRecoveryInfo
- 4ef38fbe8b96 10.20 landed
- 5cb88648ed45 11.15 landed
- 4b8af2bf8c5c 12.10 landed
- e90f258acaf2 13.6 landed
- fb2f8e534aae 14.2 landed
- f192e1bdf3b2 15.0 landed