diff --git a/contrib/amcheck/verify_nbtree.c b/contrib/amcheck/verify_nbtree.c index 825b677c47c..d56eb7637d3 100644 --- a/contrib/amcheck/verify_nbtree.c +++ b/contrib/amcheck/verify_nbtree.c @@ -42,7 +42,10 @@ #include "utils/snapmgr.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "amcheck", + .version = PG_VERSION +); /* * A B-Tree cannot possibly have this many levels, since there must be one diff --git a/contrib/auth_delay/auth_delay.c b/contrib/auth_delay/auth_delay.c index f611da2158b..8681b54fc3a 100644 --- a/contrib/auth_delay/auth_delay.c +++ b/contrib/auth_delay/auth_delay.c @@ -16,7 +16,10 @@ #include "libpq/auth.h" #include "utils/guc.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "auth_delay", + .version = PG_VERSION +); /* GUC Variables */ static int auth_delay_milliseconds = 0; diff --git a/contrib/basebackup_to_shell/basebackup_to_shell.c b/contrib/basebackup_to_shell/basebackup_to_shell.c index d91366b06d2..8720f5a4372 100644 --- a/contrib/basebackup_to_shell/basebackup_to_shell.c +++ b/contrib/basebackup_to_shell/basebackup_to_shell.c @@ -18,7 +18,10 @@ #include "utils/acl.h" #include "utils/guc.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "basebackup_to_shell", + .version = PG_VERSION +); typedef struct bbsink_shell { diff --git a/contrib/basic_archive/basic_archive.c b/contrib/basic_archive/basic_archive.c index cb839582348..4a8b8c7ac29 100644 --- a/contrib/basic_archive/basic_archive.c +++ b/contrib/basic_archive/basic_archive.c @@ -37,7 +37,10 @@ #include "storage/fd.h" #include "utils/guc.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "basic_archive", + .version = PG_VERSION +); static char *archive_directory = NULL; diff --git a/contrib/bloom/blinsert.c b/contrib/bloom/blinsert.c index ee8ebaf3caf..7866438122f 100644 --- a/contrib/bloom/blinsert.c +++ b/contrib/bloom/blinsert.c @@ -22,7 +22,10 @@ #include "utils/memutils.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "bloom", + .version = PG_VERSION +); /* * State of bloom index build. We accumulate one page data here before diff --git a/contrib/bool_plperl/bool_plperl.c b/contrib/bool_plperl/bool_plperl.c index 0fa1eee8e57..7c611bd52a7 100644 --- a/contrib/bool_plperl/bool_plperl.c +++ b/contrib/bool_plperl/bool_plperl.c @@ -4,7 +4,10 @@ #include "plperl.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "bool_plperl", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(bool_to_plperl); diff --git a/contrib/btree_gin/btree_gin.c b/contrib/btree_gin/btree_gin.c index 533c55e9eaf..98663cb8611 100644 --- a/contrib/btree_gin/btree_gin.c +++ b/contrib/btree_gin/btree_gin.c @@ -14,7 +14,10 @@ #include "utils/timestamp.h" #include "utils/uuid.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "btree_gin", + .version = PG_VERSION +); typedef struct QueryInfo { diff --git a/contrib/btree_gist/btree_gist.c b/contrib/btree_gist/btree_gist.c index 7fcb0cd6d03..280ce808456 100644 --- a/contrib/btree_gist/btree_gist.c +++ b/contrib/btree_gist/btree_gist.c @@ -7,7 +7,10 @@ #include "access/stratnum.h" #include "utils/builtins.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "btree_gist", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(gbt_decompress); PG_FUNCTION_INFO_V1(gbtreekey_in); diff --git a/contrib/citext/citext.c b/contrib/citext/citext.c index 3c461ff2ff2..a15ce5db829 100644 --- a/contrib/citext/citext.c +++ b/contrib/citext/citext.c @@ -10,7 +10,10 @@ #include "utils/varlena.h" #include "varatt.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "citext", + .version = PG_VERSION +); /* * ==================== diff --git a/contrib/cube/cube.c b/contrib/cube/cube.c index bf8fc489dca..8d3654ab7aa 100644 --- a/contrib/cube/cube.c +++ b/contrib/cube/cube.c @@ -17,7 +17,10 @@ #include "utils/array.h" #include "utils/float.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "cube", + .version = PG_VERSION +); /* * Taken from the intarray contrib header diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 33e5109da84..c2e695e364e 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -65,7 +65,10 @@ #include "utils/varlena.h" #include "utils/wait_event.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "dblink", + .version = PG_VERSION +); typedef struct remoteConn { diff --git a/contrib/dict_int/dict_int.c b/contrib/dict_int/dict_int.c index 3cfe406f669..bdad52d2028 100644 --- a/contrib/dict_int/dict_int.c +++ b/contrib/dict_int/dict_int.c @@ -15,7 +15,10 @@ #include "commands/defrem.h" #include "tsearch/ts_public.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "dict_int", + .version = PG_VERSION +); typedef struct { diff --git a/contrib/dict_xsyn/dict_xsyn.c b/contrib/dict_xsyn/dict_xsyn.c index 756ba5998c5..1ec5285d6d1 100644 --- a/contrib/dict_xsyn/dict_xsyn.c +++ b/contrib/dict_xsyn/dict_xsyn.c @@ -20,7 +20,10 @@ #include "tsearch/ts_public.h" #include "utils/formatting.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "dict_xsyn", + .version = PG_VERSION +); typedef struct { diff --git a/contrib/earthdistance/earthdistance.c b/contrib/earthdistance/earthdistance.c index ded048c8ac5..f3011803d08 100644 --- a/contrib/earthdistance/earthdistance.c +++ b/contrib/earthdistance/earthdistance.c @@ -11,7 +11,10 @@ #define M_PI 3.14159265358979323846 #endif -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "earthdistance", + .version = PG_VERSION +); /* Earth's radius is in statute miles. */ static const double EARTH_RADIUS = 3958.747716; diff --git a/contrib/file_fdw/file_fdw.c b/contrib/file_fdw/file_fdw.c index 56ececac70b..d94690e89dd 100644 --- a/contrib/file_fdw/file_fdw.c +++ b/contrib/file_fdw/file_fdw.c @@ -42,7 +42,10 @@ #include "utils/sampling.h" #include "utils/varlena.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "file_fdw", + .version = PG_VERSION +); /* * Describes the valid options for objects that use this wrapper. diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.c b/contrib/fuzzystrmatch/fuzzystrmatch.c index 850d017ac65..e7cc314b763 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.c +++ b/contrib/fuzzystrmatch/fuzzystrmatch.c @@ -44,7 +44,10 @@ #include "utils/varlena.h" #include "varatt.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "fuzzystrmatch", + .version = PG_VERSION +); /* * Soundex diff --git a/contrib/hstore/hstore_io.c b/contrib/hstore/hstore_io.c index 2125436e40c..4f867e4bd1f 100644 --- a/contrib/hstore/hstore_io.c +++ b/contrib/hstore/hstore_io.c @@ -21,7 +21,10 @@ #include "utils/memutils.h" #include "utils/typcache.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "hstore", + .version = PG_VERSION +); /* old names for C functions */ HSTORE_POLLUTE(hstore_from_text, tconvert); diff --git a/contrib/hstore_plperl/hstore_plperl.c b/contrib/hstore_plperl/hstore_plperl.c index 4a1629cad51..31393b4fa50 100644 --- a/contrib/hstore_plperl/hstore_plperl.c +++ b/contrib/hstore_plperl/hstore_plperl.c @@ -4,7 +4,10 @@ #include "hstore/hstore.h" #include "plperl.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "hstore_plperl", + .version = PG_VERSION +); /* Linkage to functions in hstore module */ typedef HStore *(*hstoreUpgrade_t) (Datum orig); diff --git a/contrib/hstore_plpython/hstore_plpython.c b/contrib/hstore_plpython/hstore_plpython.c index 310f63c30d4..8812fb3f3e4 100644 --- a/contrib/hstore_plpython/hstore_plpython.c +++ b/contrib/hstore_plpython/hstore_plpython.c @@ -5,7 +5,10 @@ #include "plpy_typeio.h" #include "plpython.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "hstore_plpython", + .version = PG_VERSION +); /* Linkage to functions in plpython module */ typedef char *(*PLyObject_AsString_t) (PyObject *plrv); diff --git a/contrib/intarray/_int_op.c b/contrib/intarray/_int_op.c index 5b164f6788f..ba6d0a99995 100644 --- a/contrib/intarray/_int_op.c +++ b/contrib/intarray/_int_op.c @@ -5,7 +5,10 @@ #include "_int.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "intarray", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(_int_different); PG_FUNCTION_INFO_V1(_int_same); diff --git a/contrib/isn/isn.c b/contrib/isn/isn.c index 5783c188737..038c8ed4db7 100644 --- a/contrib/isn/isn.c +++ b/contrib/isn/isn.c @@ -23,7 +23,10 @@ #include "isn.h" #include "utils/guc.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "isn", + .version = PG_VERSION +); #ifdef USE_ASSERT_CHECKING #define ISN_DEBUG 1 diff --git a/contrib/jsonb_plperl/jsonb_plperl.c b/contrib/jsonb_plperl/jsonb_plperl.c index 2af1e0c02af..c02e2d41af1 100644 --- a/contrib/jsonb_plperl/jsonb_plperl.c +++ b/contrib/jsonb_plperl/jsonb_plperl.c @@ -7,7 +7,10 @@ #include "utils/fmgrprotos.h" #include "utils/jsonb.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "jsonb_plperl", + .version = PG_VERSION +); static SV *Jsonb_to_SV(JsonbContainer *jsonb); static JsonbValue *SV_to_JsonbValue(SV *obj, JsonbParseState **ps, bool is_elem); diff --git a/contrib/jsonb_plpython/jsonb_plpython.c b/contrib/jsonb_plpython/jsonb_plpython.c index a625727c5e8..680445a006f 100644 --- a/contrib/jsonb_plpython/jsonb_plpython.c +++ b/contrib/jsonb_plpython/jsonb_plpython.c @@ -7,7 +7,10 @@ #include "utils/jsonb.h" #include "utils/numeric.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "jsonb_plpython", + .version = PG_VERSION +); /* for PLyObject_AsString in plpy_typeio.c */ typedef char *(*PLyObject_AsString_t) (PyObject *plrv); diff --git a/contrib/lo/lo.c b/contrib/lo/lo.c index 62488e45f3a..f9348a16b66 100644 --- a/contrib/lo/lo.c +++ b/contrib/lo/lo.c @@ -12,7 +12,10 @@ #include "utils/fmgrprotos.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "lo", + .version = PG_VERSION +); /* diff --git a/contrib/ltree/ltree_op.c b/contrib/ltree/ltree_op.c index 0e30dee4658..ce9f4caad4f 100644 --- a/contrib/ltree/ltree_op.c +++ b/contrib/ltree/ltree_op.c @@ -13,7 +13,10 @@ #include "utils/selfuncs.h" #include "varatt.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "ltree", + .version = PG_VERSION +); /* compare functions */ PG_FUNCTION_INFO_V1(ltree_cmp); diff --git a/contrib/ltree_plpython/ltree_plpython.c b/contrib/ltree_plpython/ltree_plpython.c index ac159ea3141..ba5926b8be6 100644 --- a/contrib/ltree_plpython/ltree_plpython.c +++ b/contrib/ltree_plpython/ltree_plpython.c @@ -4,7 +4,10 @@ #include "ltree/ltree.h" #include "plpython.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "ltree_plpython", + .version = PG_VERSION +); /* Linkage to functions in plpython module */ typedef PyObject *(*PLyUnicode_FromStringAndSize_t) (const char *s, Py_ssize_t size); diff --git a/contrib/pageinspect/rawpage.c b/contrib/pageinspect/rawpage.c index 617dff821a6..0d57123aa26 100644 --- a/contrib/pageinspect/rawpage.c +++ b/contrib/pageinspect/rawpage.c @@ -29,7 +29,10 @@ #include "utils/rel.h" #include "utils/varlena.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pageinspect", + .version = PG_VERSION +); static bytea *get_raw_page_internal(text *relname, ForkNumber forknum, BlockNumber blkno); diff --git a/contrib/passwordcheck/passwordcheck.c b/contrib/passwordcheck/passwordcheck.c index 3db42a5b99d..39ded17afa4 100644 --- a/contrib/passwordcheck/passwordcheck.c +++ b/contrib/passwordcheck/passwordcheck.c @@ -25,7 +25,10 @@ #include "fmgr.h" #include "libpq/crypt.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "passwordcheck", + .version = PG_VERSION +); /* Saved hook value */ static check_password_hook_type prev_check_password_hook = NULL; diff --git a/contrib/pg_buffercache/pg_buffercache_pages.c b/contrib/pg_buffercache/pg_buffercache_pages.c index 3ae0a018e10..62602af1775 100644 --- a/contrib/pg_buffercache/pg_buffercache_pages.c +++ b/contrib/pg_buffercache/pg_buffercache_pages.c @@ -20,7 +20,10 @@ #define NUM_BUFFERCACHE_SUMMARY_ELEM 5 #define NUM_BUFFERCACHE_USAGE_COUNTS_ELEM 4 -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_buffercache", + .version = PG_VERSION +); /* * Record structure holding the to be exposed cache data. diff --git a/contrib/pg_freespacemap/pg_freespacemap.c b/contrib/pg_freespacemap/pg_freespacemap.c index 565167aaef0..c0eac7a2016 100644 --- a/contrib/pg_freespacemap/pg_freespacemap.c +++ b/contrib/pg_freespacemap/pg_freespacemap.c @@ -12,7 +12,10 @@ #include "fmgr.h" #include "storage/freespace.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_freespacemap", + .version = PG_VERSION +); /* * Returns the amount of free space on a given page, according to the diff --git a/contrib/pg_logicalinspect/pg_logicalinspect.c b/contrib/pg_logicalinspect/pg_logicalinspect.c index 5a44718bea8..50e805d3195 100644 --- a/contrib/pg_logicalinspect/pg_logicalinspect.c +++ b/contrib/pg_logicalinspect/pg_logicalinspect.c @@ -18,7 +18,10 @@ #include "utils/builtins.h" #include "utils/pg_lsn.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_logicalinspect", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(pg_get_logical_snapshot_meta); PG_FUNCTION_INFO_V1(pg_get_logical_snapshot_info); diff --git a/contrib/pg_prewarm/pg_prewarm.c b/contrib/pg_prewarm/pg_prewarm.c index a2f0ac4af0c..f496ec9d85d 100644 --- a/contrib/pg_prewarm/pg_prewarm.c +++ b/contrib/pg_prewarm/pg_prewarm.c @@ -26,7 +26,10 @@ #include "utils/lsyscache.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_prewarm", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(pg_prewarm); diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c index 8ab9ad58e1c..9778407cba3 100644 --- a/contrib/pg_stat_statements/pg_stat_statements.c +++ b/contrib/pg_stat_statements/pg_stat_statements.c @@ -71,7 +71,10 @@ #include "utils/memutils.h" #include "utils/timestamp.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_stat_statements", + .version = PG_VERSION +); /* Location of permanent stats file (valid when database is shut down) */ #define PGSS_DUMP_FILE PGSTAT_STAT_PERMANENT_DIRECTORY "/pg_stat_statements.stat" diff --git a/contrib/pg_surgery/heap_surgery.c b/contrib/pg_surgery/heap_surgery.c index 5b94b3d523e..3e86283beb7 100644 --- a/contrib/pg_surgery/heap_surgery.c +++ b/contrib/pg_surgery/heap_surgery.c @@ -23,7 +23,10 @@ #include "utils/array.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_surgery", + .version = PG_VERSION +); /* Options to forcefully change the state of a heap tuple. */ typedef enum HeapTupleForceOption diff --git a/contrib/pg_trgm/trgm_op.c b/contrib/pg_trgm/trgm_op.c index 94b9015fd67..29b39ec8a4c 100644 --- a/contrib/pg_trgm/trgm_op.c +++ b/contrib/pg_trgm/trgm_op.c @@ -18,7 +18,10 @@ #include "utils/memutils.h" #include "utils/pg_crc.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_trgm", + .version = PG_VERSION +); /* GUC variables */ double similarity_threshold = 0.3f; diff --git a/contrib/pg_visibility/pg_visibility.c b/contrib/pg_visibility/pg_visibility.c index 7f268a18a74..ca91819852c 100644 --- a/contrib/pg_visibility/pg_visibility.c +++ b/contrib/pg_visibility/pg_visibility.c @@ -25,7 +25,10 @@ #include "storage/smgr.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_visibility", + .version = PG_VERSION +); typedef struct vbits { diff --git a/contrib/pg_walinspect/pg_walinspect.c b/contrib/pg_walinspect/pg_walinspect.c index 9e609415789..64745564cc2 100644 --- a/contrib/pg_walinspect/pg_walinspect.c +++ b/contrib/pg_walinspect/pg_walinspect.c @@ -29,7 +29,10 @@ * give a thought about doing the same in pg_waldump tool as well. */ -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pg_walinspect", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(pg_get_wal_block_info); PG_FUNCTION_INFO_V1(pg_get_wal_record_info); diff --git a/contrib/pgcrypto/pgcrypto.c b/contrib/pgcrypto/pgcrypto.c index b7e5383b9a6..9ecbbd2e2f8 100644 --- a/contrib/pgcrypto/pgcrypto.c +++ b/contrib/pgcrypto/pgcrypto.c @@ -41,7 +41,10 @@ #include "utils/guc.h" #include "varatt.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pgcrypto", + .version = PG_VERSION +); /* private stuff */ diff --git a/contrib/pgrowlocks/pgrowlocks.c b/contrib/pgrowlocks/pgrowlocks.c index 7e40ab21dda..b75d80fa7a9 100644 --- a/contrib/pgrowlocks/pgrowlocks.c +++ b/contrib/pgrowlocks/pgrowlocks.c @@ -42,7 +42,10 @@ #include "utils/snapmgr.h" #include "utils/varlena.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pgrowlocks", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(pgrowlocks); diff --git a/contrib/pgstattuple/pgstattuple.c b/contrib/pgstattuple/pgstattuple.c index 48cb8f59c4f..0d9c2b0b653 100644 --- a/contrib/pgstattuple/pgstattuple.c +++ b/contrib/pgstattuple/pgstattuple.c @@ -38,7 +38,10 @@ #include "storage/lmgr.h" #include "utils/varlena.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pgstattuple", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(pgstattuple); PG_FUNCTION_INFO_V1(pgstattuple_v1_5); diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 7a5439a460b..ac14c06c715 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -49,7 +49,10 @@ #include "utils/sampling.h" #include "utils/selfuncs.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "postgres_fdw", + .version = PG_VERSION +); /* Default CPU cost to start up a foreign query. */ #define DEFAULT_FDW_STARTUP_COST 100.0 diff --git a/contrib/seg/seg.c b/contrib/seg/seg.c index fd4216edc5d..151cbb954b9 100644 --- a/contrib/seg/seg.c +++ b/contrib/seg/seg.c @@ -28,7 +28,10 @@ #define GIST_QUERY_DEBUG */ -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "seg", + .version = PG_VERSION +); /* * Auxiliary data structure for picksplit method. diff --git a/contrib/sepgsql/hooks.c b/contrib/sepgsql/hooks.c index 1b1dfe6792f..7aff15c6aec 100644 --- a/contrib/sepgsql/hooks.c +++ b/contrib/sepgsql/hooks.c @@ -25,7 +25,10 @@ #include "utils/guc.h" #include "utils/queryenvironment.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "sepgsql", + .version = PG_VERSION +); /* * Declarations diff --git a/contrib/spi/autoinc.c b/contrib/spi/autoinc.c index 8bf742230e0..b5609f20251 100644 --- a/contrib/spi/autoinc.c +++ b/contrib/spi/autoinc.c @@ -11,7 +11,10 @@ #include "utils/builtins.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "autoinc", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(autoinc); diff --git a/contrib/spi/insert_username.c b/contrib/spi/insert_username.c index a2e1747ff74..e44241f9d6c 100644 --- a/contrib/spi/insert_username.c +++ b/contrib/spi/insert_username.c @@ -14,7 +14,10 @@ #include "utils/builtins.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "insert_username", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(insert_username); diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c index 5130804ce2a..5013eee433e 100644 --- a/contrib/spi/moddatetime.c +++ b/contrib/spi/moddatetime.c @@ -22,7 +22,10 @@ OH, me, I'm Terry Mackintosh #include "utils/fmgrprotos.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "moddatetime", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(moddatetime); diff --git a/contrib/spi/refint.c b/contrib/spi/refint.c index e1aef7cd2a3..d954f5c838f 100644 --- a/contrib/spi/refint.c +++ b/contrib/spi/refint.c @@ -15,7 +15,10 @@ #include "utils/memutils.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "refint", + .version = PG_VERSION +); typedef struct { diff --git a/contrib/sslinfo/sslinfo.c b/contrib/sslinfo/sslinfo.c index 30cae0bb985..da702011193 100644 --- a/contrib/sslinfo/sslinfo.c +++ b/contrib/sslinfo/sslinfo.c @@ -19,7 +19,10 @@ #include "miscadmin.h" #include "utils/builtins.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "sslinfo", + .version = PG_VERSION +); static Datum X509_NAME_field_to_text(X509_NAME *name, text *fieldName); static Datum ASN1_STRING_to_text(ASN1_STRING *str); diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index 4f2abed702c..74afdc0977f 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -44,7 +44,10 @@ #include "miscadmin.h" #include "utils/builtins.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "tablefunc", + .version = PG_VERSION +); static HTAB *load_categories_hash(char *cats_sql, MemoryContext per_query_ctx); static Tuplestorestate *get_crosstab_tuplestore(char *sql, diff --git a/contrib/tcn/tcn.c b/contrib/tcn/tcn.c index 10088802c63..3158dee0f26 100644 --- a/contrib/tcn/tcn.c +++ b/contrib/tcn/tcn.c @@ -23,7 +23,10 @@ #include "utils/rel.h" #include "utils/syscache.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "tcn", + .version = PG_VERSION +); /* * Copy from s (for source) to r (for result), wrapping with q (quote) diff --git a/contrib/test_decoding/test_decoding.c b/contrib/test_decoding/test_decoding.c index 0113b196363..bb495563200 100644 --- a/contrib/test_decoding/test_decoding.c +++ b/contrib/test_decoding/test_decoding.c @@ -22,7 +22,10 @@ #include "utils/memutils.h" #include "utils/rel.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "test_decoding", + .version = PG_VERSION +); typedef struct { diff --git a/contrib/tsm_system_rows/tsm_system_rows.c b/contrib/tsm_system_rows/tsm_system_rows.c index 0c65763d37e..f401efa2131 100644 --- a/contrib/tsm_system_rows/tsm_system_rows.c +++ b/contrib/tsm_system_rows/tsm_system_rows.c @@ -34,7 +34,10 @@ #include "optimizer/optimizer.h" #include "utils/sampling.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "tsm_system_rows", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(tsm_system_rows_handler); diff --git a/contrib/tsm_system_time/tsm_system_time.c b/contrib/tsm_system_time/tsm_system_time.c index f7bed98d1b7..c9c71d8c3af 100644 --- a/contrib/tsm_system_time/tsm_system_time.c +++ b/contrib/tsm_system_time/tsm_system_time.c @@ -33,7 +33,10 @@ #include "utils/sampling.h" #include "utils/spccache.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "tsm_system_time", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(tsm_system_time_handler); diff --git a/contrib/unaccent/unaccent.c b/contrib/unaccent/unaccent.c index 352802ef8e8..336ba31047a 100644 --- a/contrib/unaccent/unaccent.c +++ b/contrib/unaccent/unaccent.c @@ -23,7 +23,10 @@ #include "utils/lsyscache.h" #include "utils/syscache.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "unaccent", + .version = PG_VERSION +); /* * An unaccent dictionary uses a trie to find a string to replace. Each node diff --git a/contrib/uuid-ossp/uuid-ossp.c b/contrib/uuid-ossp/uuid-ossp.c index ca83f116a8a..58e312a0682 100644 --- a/contrib/uuid-ossp/uuid-ossp.c +++ b/contrib/uuid-ossp/uuid-ossp.c @@ -102,7 +102,10 @@ do { \ #endif /* !HAVE_UUID_OSSP */ -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "uuid-ossp", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(uuid_nil); PG_FUNCTION_INFO_V1(uuid_ns_dns); diff --git a/contrib/xml2/xpath.c b/contrib/xml2/xpath.c index 19180b9a6c2..23d3f332dba 100644 --- a/contrib/xml2/xpath.c +++ b/contrib/xml2/xpath.c @@ -22,7 +22,10 @@ #include #include -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "xml2", + .version = PG_VERSION +); /* exported for use by xslt_proc.c */ diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index 614926720fb..46511624f01 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -138,7 +138,10 @@ ResourceOwnerForgetJIT(ResourceOwner owner, LLVMJitContext *handle) ResourceOwnerForget(owner, PointerGetDatum(handle), &jit_resowner_desc); } -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "llvmjit", + .version = PG_VERSION +); /* diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c index c650935ef5d..ee3101c093e 100644 --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c @@ -36,7 +36,10 @@ #include "utils/pg_lsn.h" #include "utils/tuplestore.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "libpqwalreceiver", + .version = PG_VERSION +); struct WalReceiverConn { diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c index ac34092aaaf..693a766e6d7 100644 --- a/src/backend/replication/pgoutput/pgoutput.c +++ b/src/backend/replication/pgoutput/pgoutput.c @@ -36,7 +36,10 @@ #include "utils/syscache.h" #include "utils/varlena.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pgoutput", + .version = PG_VERSION +); static void pgoutput_startup(LogicalDecodingContext *ctx, OutputPluginOptions *opt, bool is_init); diff --git a/src/backend/snowball/dict_snowball.c b/src/backend/snowball/dict_snowball.c index 4c9cafbef35..e2b811a3806 100644 --- a/src/backend/snowball/dict_snowball.c +++ b/src/backend/snowball/dict_snowball.c @@ -77,7 +77,10 @@ #include "snowball/libstemmer/stem_UTF_8_turkish.h" #include "snowball/libstemmer/stem_UTF_8_yiddish.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "dict_snowball", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(dsnowball_init); diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c index 18c59491816..f00432a6981 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "cyrillic_and_mic", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(koi8r_to_mic); PG_FUNCTION_INFO_V1(mic_to_koi8r); diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c index e09fb835205..14bd66e16f2 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c @@ -14,7 +14,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "euc2004_sjis2004", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_jis_2004_to_shift_jis_2004); PG_FUNCTION_INFO_V1(shift_jis_2004_to_euc_jis_2004); diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/euc_cn_and_mic.c b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/euc_cn_and_mic.c index 17528d80484..14e157e14f5 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/euc_cn_and_mic.c +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/euc_cn_and_mic.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "euc_cn_and_mic", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_cn_to_mic); PG_FUNCTION_INFO_V1(mic_to_euc_cn); diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c index f2f92a5c66e..d2744bd69b2 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c @@ -27,7 +27,10 @@ */ #include "sjis.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "euc_jp_and_sjis", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_jp_to_sjis); PG_FUNCTION_INFO_V1(sjis_to_euc_jp); diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/euc_kr_and_mic.c b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/euc_kr_and_mic.c index 6f31f9a2c4c..0213768c452 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/euc_kr_and_mic.c +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/euc_kr_and_mic.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "euc_kr_and_mic", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_kr_to_mic); PG_FUNCTION_INFO_V1(mic_to_euc_kr); diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c index 8e38a787b67..c1834ca4181 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "euc_tw_and_big5", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_tw_to_big5); PG_FUNCTION_INFO_V1(big5_to_euc_tw); diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c index 2ca197e75d6..80370528264 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "latin2_and_win1250", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(latin2_to_mic); PG_FUNCTION_INFO_V1(mic_to_latin2); diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/latin_and_mic.c b/src/backend/utils/mb/conversion_procs/latin_and_mic/latin_and_mic.c index aca747f725f..19757afa2d9 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/latin_and_mic.c +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/latin_and_mic.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "latin_and_mic", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(latin1_to_mic); PG_FUNCTION_INFO_V1(mic_to_latin1); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/utf8_and_big5.c b/src/backend/utils/mb/conversion_procs/utf8_and_big5/utf8_and_big5.c index f8aa01d840a..eae2d2d69f3 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/utf8_and_big5.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/utf8_and_big5.c @@ -17,7 +17,10 @@ #include "../../Unicode/big5_to_utf8.map" #include "../../Unicode/utf8_to_big5.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_big5", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(big5_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_big5); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/utf8_and_cyrillic.c b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/utf8_and_cyrillic.c index fb9c9a586fa..5addade582f 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/utf8_and_cyrillic.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/utf8_and_cyrillic.c @@ -19,7 +19,10 @@ #include "../../Unicode/utf8_to_koi8u.map" #include "../../Unicode/koi8u_to_utf8.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_cyrillic", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(utf8_to_koi8r); PG_FUNCTION_INFO_V1(koi8r_to_utf8); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/utf8_and_euc2004.c b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/utf8_and_euc2004.c index 04882115e90..3e660da89b8 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/utf8_and_euc2004.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/utf8_and_euc2004.c @@ -17,7 +17,10 @@ #include "../../Unicode/euc_jis_2004_to_utf8.map" #include "../../Unicode/utf8_to_euc_jis_2004.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_euc2004", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_jis_2004_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_euc_jis_2004); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/utf8_and_euc_cn.c b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/utf8_and_euc_cn.c index d1be9fc1278..260b75c6bc5 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/utf8_and_euc_cn.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/utf8_and_euc_cn.c @@ -17,7 +17,10 @@ #include "../../Unicode/euc_cn_to_utf8.map" #include "../../Unicode/utf8_to_euc_cn.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_euc_cn", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_cn_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_euc_cn); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/utf8_and_euc_jp.c b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/utf8_and_euc_jp.c index a63efd7f33a..ad11594753d 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/utf8_and_euc_jp.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/utf8_and_euc_jp.c @@ -17,7 +17,10 @@ #include "../../Unicode/euc_jp_to_utf8.map" #include "../../Unicode/utf8_to_euc_jp.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_euc_jp", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_jp_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_euc_jp); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/utf8_and_euc_kr.c b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/utf8_and_euc_kr.c index cd37cc34209..e3f953263f3 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/utf8_and_euc_kr.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/utf8_and_euc_kr.c @@ -17,7 +17,10 @@ #include "../../Unicode/euc_kr_to_utf8.map" #include "../../Unicode/utf8_to_euc_kr.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_euc_kr", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_kr_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_euc_kr); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/utf8_and_euc_tw.c b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/utf8_and_euc_tw.c index be8907bc46c..25663bbda5d 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/utf8_and_euc_tw.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/utf8_and_euc_tw.c @@ -17,7 +17,10 @@ #include "../../Unicode/euc_tw_to_utf8.map" #include "../../Unicode/utf8_to_euc_tw.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_euc_tw", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(euc_tw_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_euc_tw); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/utf8_and_gb18030.c b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/utf8_and_gb18030.c index 82e09b0c588..ffc9c58cd13 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/utf8_and_gb18030.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/utf8_and_gb18030.c @@ -17,7 +17,10 @@ #include "../../Unicode/gb18030_to_utf8.map" #include "../../Unicode/utf8_to_gb18030.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_gb18030", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(gb18030_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_gb18030); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c index 5609e9fdfd2..9adc0ce7d89 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c @@ -17,7 +17,10 @@ #include "../../Unicode/gbk_to_utf8.map" #include "../../Unicode/utf8_to_gbk.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_gbk", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(gbk_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_gbk); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c index 53fabbc4e76..5a15981b2de 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c @@ -41,7 +41,10 @@ #include "../../Unicode/utf8_to_iso8859_9.map" #include "../../Unicode/iso8859_16_to_utf8.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_iso8859", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(iso8859_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_iso8859); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/utf8_and_iso8859_1.c b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/utf8_and_iso8859_1.c index c922638e111..c077b986bcd 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/utf8_and_iso8859_1.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/utf8_and_iso8859_1.c @@ -15,7 +15,10 @@ #include "fmgr.h" #include "mb/pg_wchar.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_iso8859_1", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(iso8859_1_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_iso8859_1); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/utf8_and_johab.c b/src/backend/utils/mb/conversion_procs/utf8_and_johab/utf8_and_johab.c index 3513613d78b..08e38026a40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/utf8_and_johab.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/utf8_and_johab.c @@ -17,7 +17,10 @@ #include "../../Unicode/johab_to_utf8.map" #include "../../Unicode/utf8_to_johab.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_johab", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(johab_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_johab); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c index b53179747e6..911a6342c60 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c @@ -17,7 +17,10 @@ #include "../../Unicode/sjis_to_utf8.map" #include "../../Unicode/utf8_to_sjis.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_sjis", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(sjis_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_sjis); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/utf8_and_sjis2004.c b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/utf8_and_sjis2004.c index 4f637932a38..d0361784a39 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/utf8_and_sjis2004.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/utf8_and_sjis2004.c @@ -17,7 +17,10 @@ #include "../../Unicode/shift_jis_2004_to_utf8.map" #include "../../Unicode/utf8_to_shift_jis_2004.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_sjis2004", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(shift_jis_2004_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_shift_jis_2004); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c index ed0aefeeae7..891a17014a1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c @@ -17,7 +17,10 @@ #include "../../Unicode/uhc_to_utf8.map" #include "../../Unicode/utf8_to_uhc.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_uhc", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(uhc_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_uhc); diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c b/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c index caabcb33e4f..24c0dd9a552 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c @@ -37,7 +37,10 @@ #include "../../Unicode/win874_to_utf8.map" #include "../../Unicode/win1258_to_utf8.map" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "utf8_and_win", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(win_to_utf8); PG_FUNCTION_INFO_V1(utf8_to_win); diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index ebf55fe663c..29cb4d7e47f 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -52,7 +52,10 @@ EXTERN_C void boot_DynaLoader(pTHX_ CV *cv); EXTERN_C void boot_PostgreSQL__InServer__Util(pTHX_ CV *cv); EXTERN_C void boot_PostgreSQL__InServer__SPI(pTHX_ CV *cv); -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "plperl", + .version = PG_VERSION +); /********************************************************************** * Information associated with a Perl interpreter. We have one interpreter diff --git a/src/pl/plpgsql/src/pl_handler.c b/src/pl/plpgsql/src/pl_handler.c index 5af38d5773b..1bf12232862 100644 --- a/src/pl/plpgsql/src/pl_handler.c +++ b/src/pl/plpgsql/src/pl_handler.c @@ -31,7 +31,10 @@ static bool plpgsql_extra_checks_check_hook(char **newvalue, void **extra, GucSo static void plpgsql_extra_warnings_assign_hook(const char *newvalue, void *extra); static void plpgsql_extra_errors_assign_hook(const char *newvalue, void *extra); -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "plpgsql", + .version = PG_VERSION +); /* Custom GUC variable */ static const struct config_enum_entry variable_conflict_options[] = { diff --git a/src/pl/plpython/plpy_main.c b/src/pl/plpython/plpy_main.c index 8117e20efa2..8f56155f006 100644 --- a/src/pl/plpython/plpy_main.c +++ b/src/pl/plpython/plpy_main.c @@ -28,7 +28,10 @@ * exported functions */ -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "plpython", + .version = PG_VERSION +); PG_FUNCTION_INFO_V1(plpython3_validator); PG_FUNCTION_INFO_V1(plpython3_call_handler); diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c index 08c8492050e..73d660e88a6 100644 --- a/src/pl/tcl/pltcl.c +++ b/src/pl/tcl/pltcl.c @@ -39,7 +39,10 @@ #include "utils/typcache.h" -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "pltcl", + .version = PG_VERSION +); #define HAVE_TCL_VERSION(maj,min) \ ((TCL_MAJOR_VERSION > maj) || \ diff --git a/src/test/regress/regress.c b/src/test/regress/regress.c index ed4a7937331..0bc0a9221de 100644 --- a/src/test/regress/regress.c +++ b/src/test/regress/regress.c @@ -79,7 +79,10 @@ static void regress_lseg_construct(LSEG *lseg, Point *pt1, Point *pt2); -PG_MODULE_MAGIC; +PG_MODULE_MAGIC_EXT( + .name = "regress", + .version = PG_VERSION +); /* return the point where two paths intersect, or NULL if no intersection. */