LOAD(7)
πΈ NAME πΈ
LOAD β load a shared library file. This is the LOAD(7) page, bestie, and it's lowkey iconic.
β¨ SYNOPSIS β¨
LOAD 'filename'
π DESCRIPTION π
Okay so LOAD loads a shared library file into the PostgreSQL server's address space. If the file has already been loaded, the command does nothing β literally nothing, no rerun chaos.
Shared library files that contain C functions are automatically loaded whenever one of their functions is called. That means an explicit LOAD is usually only needed to load a library that modifies the server's behavior through βhooksβ rather than providing a set of functions. Main character library energy, honestly.
The library file name is typically given as just a bare file name, which is sought in the server's library search path (set by dynamic_library_path). Alternatively it can be given as a full path name. In either case the platform's standard shared library file name extension may be omitted. See Section 38.10.1 for more information on this topic. π¦
Non-superusers can only applyLOADto library files located in$libdir/plugins/β the specified filename must begin with exactly that string. (It is the database administrator's responsibility to ensure that only βsafeβ libraries are installed there.) So yeah, admin gatekeeping, and honestly valid π
π COMPATIBILITY π
LOAD is a PostgreSQL extension. Periodt.
π SEE ALSO π
CREATE FUNCTION(CREATE_FUNCTION(7))
Stay loaded, bestie π«Ά β PostgreSQL 16.15 Documentation Β· 2026 Β· LOAD(7).
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms