summaryrefslogtreecommitdiff
path: root/contrib/auth_delay/auth_delay.c
diff options
context:
space:
mode:
authorTom Lane2025-03-26 15:11:02 +0000
committerTom Lane2025-03-26 15:11:02 +0000
commit55527368bd07248e91e3d37a782bf66b76f06865 (patch)
tree7bb79a5fedea00a79c5b447b1539e3098f0fde42 /contrib/auth_delay/auth_delay.c
parent9324c8c580655800331b0582b770e88c01b7a5c4 (diff)
Use PG_MODULE_MAGIC_EXT in our installable shared libraries.
It seems potentially useful to label our shared libraries with version information, now that a facility exists for retrieving that. This patch labels them with the PG_VERSION string. There was some discussion about using semantic versioning conventions, but that doesn't seem terribly helpful for modules with no SQL-level presence; and for those that do have SQL objects, we typically expect them to support multiple revisions of the SQL definitions, so it'd still not be very helpful. I did not label any of src/test/modules/. It seems unnecessary since we don't install those, and besides there ought to be someplace that still provides test coverage for the original PG_MODULE_MAGIC macro. Author: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'contrib/auth_delay/auth_delay.c')
-rw-r--r--contrib/auth_delay/auth_delay.c5
1 files changed, 4 insertions, 1 deletions
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;