Re: Restore support for USE_ASSERT_CHECKING in extensions only

Andrew Kane <andrew@ankane.org>

From: Andrew Kane <andrew@ankane.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Rowley <dgrowleyml@gmail.com>, pgsql-hackers@postgresql.org
Date: 2025-01-10T23:55:53Z
Lists: pgsql-hackers

Attachments

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).

Commits

  1. Make verify_compact_attribute available in non-assert builds