Re: Something is wrong with wal_compression
От | Michael Paquier |
---|---|
Тема | Re: Something is wrong with wal_compression |
Дата | |
Msg-id | Y9dcOTrHIQC2BgXC@paquier.xyz обсуждение исходный текст |
Ответ на | Re: Something is wrong with wal_compression (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Something is wrong with wal_compression
|
Список | 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
Вложения
В списке pgsql-hackers по дате отправления: