- file, for example after recompiling it, use the
- linkend="sql-load" endterm="sql-load-title"> command or begin a
- fresh session.
+ file, for example after recompiling it, begin a fresh session.
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, an unload only happens in the context of re-loading
- the file due to an explicit LOAD> command.)
+ (Presently, unloads are disabled and will never occur, but this may
+ change in the future.)
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.99 2009/06/11 14:49:05 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.100 2009/09/03 22:11:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
* Unload the specified dynamic-link library file, if it is loaded.
*
* Note: libname is expected to be an exact name for the library file.
+ *
+ * XXX for the moment, this is disabled, resulting in LOAD of an already-loaded
+ * library always being a no-op. We might re-enable it someday if we can
+ * convince ourselves we have safe protocols for un-hooking from hook function
+ * pointers, releasing custom GUC variables, and perhaps other things that
+ * are definitely unsafe currently.
*/
static void
internal_unload_library(const char *libname)
{
+#ifdef NOT_USED
DynamicFileList *file_scanner,
*prv,
*nxt;
else
prv = file_scanner;
}
+#endif /* NOT_USED */
}
static bool