#include "postgres.h"
#include <sys/stat.h>
#include <dlfcn.h>
#include "fmgr.h"
#include "lib/stringinfo.h"
#include "miscadmin.h"
#include "storage/fd.h"
#include "storage/shmem.h"
#include "utils/hsearch.h"
Go to the source code of this file.
Definition at line 702 of file dfmgr.c.
References add_size(), file_list, DynamicFileList::filename, and DynamicFileList::next.
Referenced by InitializeParallelDSM().
Definition at line 466 of file dfmgr.c.
References Assert(), Dynamic_library_path, find_in_path(), first_dir_separator(), name, pfree(), pg_file_exists(), pkglib_path, psprintf(), pstrdup(), and substitute_path_macro().
Referenced by load_external_function(), and load_file().
Definition at line 574 of file dfmgr.c.
References Assert(), canonicalize_path(), DEBUG3, elog, ereport, errcode(), errmsg(), ERROR, first_dir_separator(), first_path_var_separator(), is_absolute_path, len, palloc(), pfree(), pg_file_exists(), sprintf, strlcpy(), and substitute_path_macro().
Referenced by expand_dynamic_library_name().
Definition at line 664 of file dfmgr.c.
References ctl, hash_create(), HASH_ELEM, HASH_ENTER, hash_search(), HASH_STRINGS, NAMEDATALEN, and rendezvousHashEntry::varValue.
Referenced by _PG_init().
Definition at line 425 of file dfmgr.c.
References file_list.
Referenced by pg_get_loaded_modules().
Definition at line 445 of file dfmgr.c.
References DynamicFileList::filename, DynamicFileList::magic, Pg_magic_struct::name, and Pg_magic_struct::version.
Referenced by pg_get_loaded_modules().
Definition at line 431 of file dfmgr.c.
References DynamicFileList::next.
Referenced by pg_get_loaded_modules().
Definition at line 316 of file dfmgr.c.
References _, Pg_abi_values::abi_extra, appendStringInfo(), appendStringInfoChar(), appendStringInfoString(), StringInfoData::data, ereport, errdetail(), errdetail_internal(), errmsg(), ERROR, Pg_abi_values::float8byval, Pg_abi_values::funcmaxargs, Pg_abi_values::indexmaxkeys, initStringInfo(), StringInfoData::len, magic_data, Pg_abi_values::namedatalen, snprintf, and Pg_abi_values::version.
Referenced by internal_load_library().
Definition at line 189 of file dfmgr.c.
References Pg_magic_struct::abi_fields, DynamicFileList::device, dlclose(), dlerror(), dlopen(), dlsym(), ereport, errcode(), errcode_for_file_access(), errhint(), errmsg(), ERROR, file_list, file_tail, DynamicFileList::filename, filename, free, DynamicFileList::handle, incompatible_module_error(), DynamicFileList::inode, Pg_magic_struct::len, DynamicFileList::magic, magic_data, malloc, MemSet, DynamicFileList::next, PG_MAGIC_FUNCTION_NAME_STRING, RTLD_GLOBAL, RTLD_NOW, SAME_INODE, stat::st_dev, stat::st_ino, and stat.
Referenced by load_external_function(), load_file(), and RestoreLibraryState().
Definition at line 95 of file dfmgr.c.
References dlsym(), ereport, errcode(), errmsg(), ERROR, expand_dynamic_library_name(), filename, first_dir_separator(), funcname, internal_load_library(), and pfree().
Referenced by _PG_init(), fmgr_c_validator(), fmgr_info_C_lang(), llvm_resolve_symbol(), load_validator_library(), LoadArchiveLibrary(), LoadOutputPlugin(), LookupBackgroundWorkerFunction(), LookupParallelWorkerFunction(), and provider_init().
Definition at line 149 of file dfmgr.c.
References check_restricted_library_name(), expand_dynamic_library_name(), filename, internal_load_library(), pfree(), and restricted.
Referenced by AlterSubscription(), AlterSubscription_refresh(), CreateSubscription(), DropSubscription(), load_libraries(), pg_sync_replication_slots(), ReplicationSlotDropAtPubNode(), ReplSlotSyncWorkerMain(), SetupApplyOrSyncWorker(), standard_ProcessUtility(), and WalReceiverMain().
Definition at line 741 of file dfmgr.c.
References internal_load_library().
Referenced by ParallelWorkerMain().
Definition at line 719 of file dfmgr.c.
References Assert(), file_list, DynamicFileList::filename, len, DynamicFileList::next, and strlcpy().
Referenced by InitializeParallelDSM().
Definition at line 536 of file dfmgr.c.
References Assert(), ereport, errcode(), errmsg(), ERROR, first_dir_separator(), psprintf(), pstrdup(), str, and value.
Referenced by expand_dynamic_library_name(), find_in_path(), and get_extension_control_directories().
Definition at line 69 of file dfmgr.c.
Referenced by expand_dynamic_library_name().
Definition at line 59 of file dfmgr.c.
Referenced by EstimateLibraryStateSpace(), get_first_loaded_module(), internal_load_library(), and SerializeLibraryState().
Definition at line 60 of file dfmgr.c.
Referenced by internal_load_library().
Definition at line 78 of file dfmgr.c.
Referenced by incompatible_module_error(), and internal_load_library().