On 11/21/25 01:44, Andreas Karlsson wrote:
> On 11/20/25 11:34 AM, Tomas Vondra wrote:
>> On 11/19/25 22:03, Andreas Karlsson wrote:
>>> Hi,
>>>
>>> I have been following these discussions but not read the patch in
>>> detail.
>>>
>>> This patch makes me worried especially with the new issues recently
>>> uncovered. This was already a quite big patch and to fix these issues it
>>> will likely have to become even bigger and given how this would become a
>>> very rarely stressed code paths I wonder if we can actually ever become
>>> confident that the patch works in all edge cases.
>>>
>>> Something like this need to be easy to understand for us to have any
>>> hope at all to be comfortable in the correctness. Can we actually do
>>> that?
>>>
>>
>> How's this different from any other complex patch? We get more familiar
>> with the problem during review, identify issues, improve the patch to
>> address them. And then again and again.
>
> The difference I see is in how rarely anyone actually switches checksum
> state in a production database, especially now that we enabled them by
> default. A complex and rarely stressed code path is a minefield.
>
True. Hence the stress testing I've been doing - and indeed, that made
us discover the various issues reported in this thread.
Still, isn't that similar to error paths in various other patches? Those
also tend to be rarely exercised in practice. I think the right way to
address that is more testing. Of course, there's a difference between
"regular bugs" and "design problems". Some of the issues are more about
the design/architecture not considering something important.
I don't know if / when this will be ready for commit. Maybe never, who
knows. I prefer going step by step. We know about a couple issues, we
need to figure out what to do about those. Then we can reconsider.
FWIW I'm not sure the number of people currently enabling checksums on
production databases is a good metric of how important the patch is.
Maybe more people would like to do that, but can't accept the downtime.
regards
--
Tomas Vondra