Re: Simplifying our Trap/Assert infrastructure

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Nathan Bossart <nathandbossart@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-10-12T19:19:17Z
Lists: pgsql-hackers
On 12.10.22 20:36, Nathan Bossart wrote:
> On Sun, Oct 09, 2022 at 02:01:48PM -0700, Nathan Bossart wrote:
>> The patch LGTM.  It might be worth removing usages of AssertArg and
>> AssertState, too, but that can always be done separately.
> 
> If you are so inclined...

I'm in favor of this.  These variants are a distraction.



Commits

  1. Make AssertPointerAlignment available to frontend code

  2. Remove AssertArg and AssertState

  3. Simplify our Assert infrastructure a little.