| From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
|---|---|
| To: | Tomas Vondra <tomas(at)vondra(dot)me> |
| Cc: | SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Andres Freund <andres(at)anarazel(dot)de>, Bernd Helmle <mailings(at)oopsware(dot)de>, Michael Paquier <michael(at)paquier(dot)xyz>, Michael Banck <mbanck(at)gmx(dot)net> |
| Subject: | Re: Changing the state of data checksums in a running cluster |
| Date: | 2026-05-29 20:08:11 |
| Message-ID: | F2ACC7C5-13F5-4B3E-8964-1C3170E05064@yesql.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On 28 May 2026, at 13:51, Tomas Vondra <tomas(at)vondra(dot)me> wrote:
>
> On 5/28/26 13:28, Daniel Gustafsson wrote:
>>> On 26 May 2026, at 20:12, Tomas Vondra <tomas(at)vondra(dot)me> wrote:
>>
>>> I suppose this means we should not be updating the checksum state
>>> without emitting the barrier? I think all other places do that.
>>
>> Good catch, it's indeed a bug, any state change must emit a procsignalbarrier
>> to maintain cluster consistency. I ended up writing a test for this very case
>> as well.
>
> Good.
I've pushed this now, along with your other findings, ahead of the beta1
deadline, buildfarm seems happy so far.
>>> I still don't understand why this needs DELAY_CHKPT_START ...
>>
>> Having stared at this for some time, and going over old threads, I think this
>> is a mistake. AFAICT though it cannot cause any error, so I'd lean towards
>> erring on the safe side by leaving as is and looking at removing in 20. What
>> do you think?
>>
>
> I'd probably try to fix this for 19, otherwise it may be confusing
> people looking at the code in the future. We're still months from 19
> getting released. Ofc, maybe I'm underestimating the risk.
You're probably right. Once beta1 is out I'll work on getting this fixed.
--
Daniel Gustafsson
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-05-29 20:10:23 | Re: A few message wording/formatting cleanup patches |
| Previous Message | Zakariyah Ali | 2026-05-29 20:07:31 | [PATCH v1] Fix doubled-word typos and punctuation in code comments |