From ab02d702ef08343fba30d90fdf7df5950063e8c9 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Wed, 11 May 2022 15:27:33 -0400 Subject: Remove non-functional code for unloading loadable modules. The code for unloading a library has been commented-out for over 12 years, ever since commit 602a9ef5a7c60151e10293ae3c4bb3fbb0132d03, and we're no closer to supporting it now than we were back then. Nathan Bossart, reviewed by Michael Paquier and by me. Discussion: http://postgr.es/m/Ynsc9bRL1caUSBSE@paquier.xyz --- doc/src/sgml/xfunc.sgml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index 07c5fd198b2..fbe718e3c28 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -1978,28 +1978,16 @@ PG_MODULE_MAGIC; _PG_init - - _PG_fini - library initialization function - - library finalization function - - Optionally, a dynamically loaded file can contain initialization and - finalization functions. If the file includes a function named + Optionally, a dynamically loaded file can contain an initialization + function. If the file includes a function named _PG_init, that function will be called immediately after loading the file. The function receives no parameters and should - return void. If the file includes a function named - _PG_fini, that function will be called immediately before - unloading the file. Likewise, the function receives no parameters and - should return void. Note that _PG_fini will only be called - during an unload of the file, not during process termination. - (Presently, unloads are disabled and will never occur, but this may - change in the future.) + return void. There is presently no way to unload a dynamically loaded file. -- cgit v1.2.3