aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-12-23 14:46:49 +0900
committerMichael Paquier <michael@paquier.xyz>2024-12-23 14:46:49 +0900
commit7f97b4734f937db6f8dab1bbf8bbaab349e6c9b1 (patch)
tree3827f44eae03b923f80f297e3d5c5efa442fbc45 /src
parent578a7fe7b6f8484f6d7caa2fda288abb3fe87aa0 (diff)
downloadpostgresql-7f97b4734f937db6f8dab1bbf8bbaab349e6c9b1.tar.gz
postgresql-7f97b4734f937db6f8dab1bbf8bbaab349e6c9b1.zip
Fix some comments related to library unloading
Library unloading has never been supported with its code removed in ab02d702ef08, and there were some comments still mentioning that it was a possible operation. ChangAo has noticed the incorrect references in dfmgr.c, while I have noticed the other ones while scanning the rest of the tree for similar mistakes. Author: ChangAo Chen, Michael Paquier Reviewed-by: Tom Lane Discussion: https://postgr.es/m/tencent_1D09840A1632D406A610C8C4E2491D74DB0A@qq.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/fmgr/dfmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/fmgr/dfmgr.c b/src/backend/utils/fmgr/dfmgr.c
index 8e81ecc7491..8b7807472fd 100644
--- a/src/backend/utils/fmgr/dfmgr.c
+++ b/src/backend/utils/fmgr/dfmgr.c
@@ -125,7 +125,7 @@ load_external_function(const char *filename, const char *funcname,
/*
* This function loads a shlib file without looking up any particular
* function in it. If the same shlib has previously been loaded,
- * unload and reload it.
+ * we do not load it again.
*
* When 'restricted' is true, only libraries in the presumed-secure
* directory $libdir/plugins may be referenced.
@@ -142,7 +142,7 @@ load_file(const char *filename, bool restricted)
/* Expand the possibly-abbreviated filename to an exact path name */
fullname = expand_dynamic_library_name(filename);
- /* Load the shared library */
+ /* Load the shared library, unless we already did */
(void) internal_load_library(fullname);
pfree(fullname);