Re: Use PG_MODULE_MAGIC_EXT macro in modules added in PG19

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andreas Karlsson <andreas(at)proxel(dot)se>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Use PG_MODULE_MAGIC_EXT macro in modules added in PG19
Date: 2026-07-02 23:42:09
Message-ID: akb3UfCAJL8Y12-r@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jul 02, 2026 at 11:55:55PM +0200, Andreas Karlsson wrote:
> It looks like we forgot about the PG_MODULE_MAGIC_EXT macro when adding
> pg_plan_advice, pg_stash_advice and pgrepack so here is a patch fixing that.
>
> Maybe we should also use the new macro in other places like our test modules
> and our modules in the documentation and the tutorial but there I am less
> certain and that is a separate topic.

It would be sad to see all that missing the release train, as the SQL
function to see loaded libraries is super useful. Will probably take
care of it in a few days, except if their respective committers show
up in-between.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2026-07-02 23:45:12 Re: Use PG_MODULE_MAGIC_EXT macro in modules added in PG19
Previous Message Michael Paquier 2026-07-02 23:36:35 Re: add validations for required callbacks during pgstat_register_kind()