1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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 602a9ef5a7, 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
This commit is contained in:
Robert Haas
2022-05-11 15:27:33 -04:00
parent 78ccd6cca4
commit ab02d702ef
13 changed files with 13 additions and 200 deletions

View File

@ -1978,28 +1978,16 @@ PG_MODULE_MAGIC;
<indexterm zone="xfunc-c-dynload">
<primary>_PG_init</primary>
</indexterm>
<indexterm zone="xfunc-c-dynload">
<primary>_PG_fini</primary>
</indexterm>
<indexterm zone="xfunc-c-dynload">
<primary>library initialization function</primary>
</indexterm>
<indexterm zone="xfunc-c-dynload">
<primary>library finalization function</primary>
</indexterm>
<para>
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
<function>_PG_init</function>, 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
<function>_PG_fini</function>, that function will be called immediately before
unloading the file. Likewise, the function receives no parameters and
should return void. Note that <function>_PG_fini</function> 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.
</para>
</sect2>