Re: Restore support for USE_ASSERT_CHECKING in extensions only

David Rowley <dgrowleyml@gmail.com>

From: David Rowley <dgrowleyml@gmail.com>
To: Andrew Kane <andrew@ankane.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@postgresql.org
Date: 2025-01-11T00:05:07Z
Lists: pgsql-hackers
On Sat, 11 Jan 2025 at 12:56, Andrew Kane <andrew@ankane.org> wrote:
> I've updated the patch to make verify_compact_attribute a no-op.
>
> The extension sets USE_ASSERT_CHECKING, which is why the macro approach doesn't work (it won't take that path).
>
> Also, it looks like it fails when creating the extension / loading the shared library (on Ubuntu), not when linking (as I misstated earlier).

I think the v2 patch looks fine then. I'll push.

David



Commits

  1. Make verify_compact_attribute available in non-assert builds