LOAD(7)
π LOAD(7) β the shared-library glow-up π
hey bestie, welcome to the LOAD(7) page from the PostgreSQL 17.11 documentation. this one is short and lowkey iconic: itβs all about loading a shared library file into the server. letβs get into it π«Ά
π NAME π
LOAD β load a shared library file πΈ
β¨ SYNOPSIS β¨
LOAD 'filename'
π¦ DESCRIPTION π¦
okay so picture this: LOAD loads a shared library file straight into the PostgreSQL server's address space. yes, thatβs the main-character move. if the file has already been loaded, the command does nothing β thatβs it, no extra behavior. periodt π
shared library files that contain C functions are automatically loaded whenever one of their functions is called. so you usually donβt need to yell LOAD manually for those. an explicit LOAD is usually only needed when youβre loading a library that modifies the serverβs behavior through βhooksβ instead of providing a set of functions. iykyk β¨
the library file name is typically given as just a bare file name, and that name is sought in the serverβs library search path β which is set by dynamic_library_path. alternatively, you can give it as a full path name. in either case, the platformβs standard shared library file name extension may be omitted. for more information on this topic, see Section 36.10.1 β yes, that section, go read it bestie π
β οΈ 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 like, no chaotic random libraries in that folder, pls π)
π COMPATIBILITY π
LOAD is a PostgreSQL extension. thatβs it, thatβs the tea β
π SEE ALSO π
CREATE FUNCTION (CREATE_FUNCTION(7))β another page to check out, bestie π
okay thatβs the whole LOAD(7) moment π source/version: PostgreSQL 17.11; date: 2026; manual: LOAD(7). mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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