Re: Simplifying our Trap/Assert infrastructure
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Nathan Bossart <nathandbossart@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>,
pgsql-hackers@lists.postgresql.org
Date: 2022-10-31T09:02:35Z
Lists: pgsql-hackers
Attachments
- 0001-Make-AssertPointerAlignment-available-to-frontend-co.patch (text/plain) patch 0001
On 31.10.22 01:04, Michael Paquier wrote: > On Fri, Oct 28, 2022 at 09:36:23AM +0200, Peter Eisentraut wrote: >> Would there be a use for that? It's currently only used in the atomics >> code. > > Yep, but they would not trigger when using atomics in the frontend > code. We don't have any use for that in core on HEAD, still that > could be useful for some external frontend code? Please see the > attached. I don't think we need separate definitions for frontend and backend, since the contained Assert() will take care of the difference. So the attached would be simpler.
Commits
-
Make AssertPointerAlignment available to frontend code
- 2fe4c7384f46 16.0 landed
-
Remove AssertArg and AssertState
- b1099eca8f38 16.0 landed
-
Simplify our Assert infrastructure a little.
- 235eb4db9879 16.0 landed