David Wheeler talks pre-loading:
Recently I’ve been trying to figure out when a Postgres extension shared libraries should be preloaded. By “shared libraries” I mean libraries provided or used by Postgres extensions, whether
LOAD
able libraries orCREATE EXTENSION
libraries written in C or pgrx. By “preloaded” I mean under what conditions should they be added to one of the Shared Library Preloading variables, especiallyshared_preload_libraries
.The answer, it turns out, comes very much down to the extension type. Read on for details.
Read on for an interesting discussion of what pre-loading means and the circumstances you should consider along the way.