]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Use PG_MODULE_MAGIC_EXT in newly introduced modules
authorRobert Haas <rhaas@postgresql.org>
Mon, 6 Jul 2026 19:34:12 +0000 (15:34 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 6 Jul 2026 19:45:58 +0000 (15:45 -0400)
We forgot to use the PG_MODULE_MAGIC_EXT in some newly added modules:
pg_plan_advice, pg_stash_advice and the pgrepack output plugin and
instead used the older PG_MODULE_MAGIC macro.

Author: Andreas Karlsson <andreas@proxel.se>
Discussion: http://postgr.es/m/ad7b910c-d145-4120-994d-2e55c456aa75@proxel.se
Backpatch-through: 19

contrib/pg_plan_advice/pg_plan_advice.c
contrib/pg_stash_advice/pg_stash_advice.c
src/backend/replication/pgrepack/pgrepack.c

index 299b0d02a8612c00a40864491a45b55e853eeb89..7cd753ee171aef2abb6dfe1f5abe5143f3a5ccb8 100644 (file)
 #include "storage/dsm_registry.h"
 #include "utils/guc.h"
 
-PG_MODULE_MAGIC;
+PG_MODULE_MAGIC_EXT(
+                                       .name = "pg_plan_advice",
+                                       .version = PG_VERSION
+);
 
 /* GUC variables */
 char      *pg_plan_advice_advice = NULL;
index 1858c6a135ad6b82988e1c3f207ac0563e5a25f1..777ff3745994eaea33850926d3b7af7b28f28acf 100644 (file)
 #include "utils/guc.h"
 #include "utils/memutils.h"
 
-PG_MODULE_MAGIC;
+PG_MODULE_MAGIC_EXT(
+                                       .name = "pg_stash_advice",
+                                       .version = PG_VERSION
+);
 
 /* Shared memory hash table parameters */
 static dshash_parameters pgsa_stash_dshash_parameters = {
index 959551f5724d1f9f7fd61312b98e85cd13f1c188..5c5095bde4e78a3d9277ae06118683f663fc9551 100644 (file)
 #include "replication/snapbuild.h"
 #include "utils/memutils.h"
 
-PG_MODULE_MAGIC;
+PG_MODULE_MAGIC_EXT(
+                                       .name = "pgrepack",
+                                       .version = PG_VERSION
+);
 
 static void repack_startup(LogicalDecodingContext *ctx,
                                                   OutputPluginOptions *opt, bool is_init);