Use PG_MODULE_MAGIC_EXT in newly introduced modules

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
This commit is contained in:
Robert Haas 2026-07-06 15:34:12 -04:00
parent 54d5947efe
commit da8889ccd7
3 changed files with 12 additions and 3 deletions

View file

@ -28,7 +28,10 @@
#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;

View file

@ -22,7 +22,10 @@
#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 = {

View file

@ -18,7 +18,10 @@
#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);