Re: Something is wrong with wal_compression
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Munro <thomas.munro@gmail.com>, Andrey Borodin <amborodin86@gmail.com>, Andres Freund <andres@anarazel.de>, Laurenz Albe <laurenz.albe@cybertec.at>, Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers@lists.postgresql.org
Date: 2023-01-30T05:57:13Z
Lists: pgsql-hackers
On Sat, Jan 28, 2023 at 12:02:23AM -0500, Tom Lane wrote: > My thoughts were trending in that direction too. It's starting > to sound like we aren't going to be able to make a fix that > we'd be willing to risk back-patching, even if it were completely > compatible at the user level. > > Still, the idea that txid_status() isn't trustworthy is rather > scary. I wonder whether there is a failure mode here that's > exhibitable without using that. Okay, as far as I can see, the consensus would be to not do anything about the performance impact of these functions: 20210305.115011.558061052471425531.horikyota.ntt@gmail.com Three of my buildfarm machines are unstable because of that, they need something for stable branches as well, and I'd like them to stress their options. Based on what's been mentioned, we can: 1) tweak the test with an extra checkpoint to make sure that the XIDs are flushed, like in the patch posted on [1]. 2) tweak the test to rely on a state of the table, as mentioned by Andrey. 3) remove entirely the test, because as introduced it does not actually test what it should. 2) is not really interesting, IMO, because the test checks for two things: - an in-progress XID, which we already do in the main regression test suite. - a post-crash state, and switching to an approach where some data is for example scanned is no different than a lot of the other recovery tests. 1) means more test cycles, and perhaps we could enforce compression of WAL while on it? At the end, my vote would just go for 3) and drop the whole scenario, though there may be an argument in 1). [1]: https://www.postgresql.org/message-id/20210305.115011.558061052471425531.horikyota.ntt@gmail.com -- Michael
Commits
-
Remove recovery test 011_crash_recovery.pl
- 403d82dd54b5 11.19 landed
- e8fb2a721b36 12.14 landed
- ee11824ac4c2 13.10 landed
- 96d42bd27fef 14.7 landed
- c5b2975ec183 15.2 landed
- 8c1cd726c5d9 16.0 landed
-
Add a txid_status function.
- 857ee8e391ff 10.0 cited