| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Andres Freund <andres(at)anarazel(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: fix more casting away of qualifiers |
| Date: | 2026-11-03 10:41:34 |
| Message-ID: | a5f5bdb1-f836-4622-af33-01a6f4f7afc6@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 19.10.26 13:55, Andres Freund wrote:
> I don't think the volatiles moved into PMSignalData are particularly
> useful. They're precisely one of the cases where volatile is just pretending
> to do things correctly.
> Tom, is there any reason this doesn't use barriers? I assume it's just
> because the code is "too old"?
I played around with this a little bit. Using memory barriers here
makes for very difficult to follow code, because the interacting parts
are spread over a bunch of different functions, and so you don't get the
idiomatic
do one thing
barrier
do another thing
code.
If we're going to touch it, would it better to try to write this with
atomics (with barrier semantics, as appropriate)? What is the current
thinking on whether the barrier macros or atomics should be used?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-11-03 10:56:51 | Re: Assertion failure when importing expression statistics with nested JSON values |
| Previous Message | Amit Kapila | 2026-11-03 10:31:14 | Re: Proposal: Conflict log history table for Logical Replication |