Re: rename and move AssertVariableIsOfType

Bertrand Drouvot <bertranddrouvot.pg@gmail.com>

From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>, Álvaro Herrera <alvherre@kurilemu.de>
Date: 2026-02-16T09:01:49Z
Lists: pgsql-hackers
Hi,

On Mon, Feb 16, 2026 at 09:40:28AM +0100, Peter Eisentraut wrote:
> On 03.02.26 14:39, Bertrand Drouvot wrote:
> > After there are no remaining usages of StaticAssertStmt() and we may want to
> > deprecate it.
> 
> I have committed this.

Thanks!

> And then I added a comment in c.h that StaticAssertStmt() is deprecated.

I think that could be also a good candidate for using pg_attribute_deprecated()
proposed in [1] (cc-ing Álvaro as I think he had in mind to add the
pg_attribute_deprecated() to the tree).

Regards,

[1]: https://postgr.es/m/aRGa87Ab0f3ItWRV@ip-10-97-1-34.eu-west-3.compute.internal

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



Commits

  1. Change remaining StaticAssertStmt() to StaticAssertDecl()

  2. Change StaticAssertVariableIsOfType to be a declaration

  3. Rename AssertVariableIsOfType to StaticAssertVariableIsOfType