summaryrefslogtreecommitdiff
path: root/src/include/fmgr.h
diff options
context:
space:
mode:
authorMichael Paquier2024-08-20 22:24:03 +0000
committerMichael Paquier2024-08-20 22:24:03 +0000
commit15c1abd97710d74672e55d53148a0606baa91d18 (patch)
treed42d84be70370cc9817ae8989e2071f1910dcea6 /src/include/fmgr.h
parent678a8358d18d4079ced9f3655fead13df914cfbb (diff)
Remove _PG_fini()
ab02d702ef08 has removed from the backend the code able to support the unloading of modules, because this has never worked. This removes the last references to _PG_fini(), that could be used as a callback for modules to manipulate the stack when unloading a library. The test module ldap_password_func had the idea to declare it, doing nothing. The function declaration in fmgr.h is gone. It was left around in 2022 to avoid breaking extension code, but at this stage there are also benefits in letting extension developers know that keeping the unloading code is pointless and this move leads to less maintenance. Reviewed-by: Tom Lane, Heikki Linnakangas Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/fmgr.h')
-rw-r--r--src/include/fmgr.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h
index ccb4070a251..1e3795de4a8 100644
--- a/src/include/fmgr.h
+++ b/src/include/fmgr.h
@@ -425,14 +425,13 @@ extern int no_such_variable
/*
- * Declare _PG_init/_PG_fini centrally. Historically each shared library had
- * its own declaration; but now that we want to mark these PGDLLEXPORT, using
- * central declarations avoids each extension having to add that. Any
- * existing declarations in extensions will continue to work if fmgr.h is
- * included before them, otherwise compilation for Windows will fail.
+ * Declare _PG_init centrally. Historically each shared library had its own
+ * declaration; but now that we want to mark these PGDLLEXPORT, using central
+ * declarations avoids each extension having to add that. Any existing
+ * declarations in extensions will continue to work if fmgr.h is included
+ * before them, otherwise compilation for Windows will fail.
*/
extern PGDLLEXPORT void _PG_init(void);
-extern PGDLLEXPORT void _PG_fini(void);
/*-------------------------------------------------------------------------