LOAD(7)
π LOAD(7) β the PostgreSQL 13.23 glow-up edition β¨
okay so bestie, welcome to LOAD(7) from the PostgreSQL 13.23 docs π this one's short but she's iconic, let's get into it π«Ά
πΈ NAME πΈ
LOAD β load a shared library file, no cap π
β¨ SYNOPSIS β¨
LOAD 'filename'
that's it. that's the whole vibe check. π¦
π DESCRIPTION π
okay so here's the tea β β this command loads a shared library file straight into the PostgreSQL server's address space. literally just yeets it in there. π
if the file has already been loaded, the command does nothing. like, doesn't even blink. it's giving "been there, done that, already in memory" π
now, shared library files that contain C functions get loaded automatically whenever one of their functions is called β the server handles that for you, no manual needed, periodt β¨. therefore, an explicit LOAD is usually only needed when you're loading a library that modifies the server's behavior through "hooks" rather than providing a set of functions. hooks are the main character here, iykyk π
the library file name is typically given as just a bare file name β and that get searched for in the server's library search path, which is set by dynamic_library_path. alternatively, you can hand over a full path name instead. either way works bestie, the server's flexible like that π
and in either case, the platform's standard shared library file name extension may be omitted. fancy, right? for more info on this whole topic, go peek at Section 37.10.1 π
π¨ important bestie alert: non-superusers can only applyLOADto library files located in$libdir/plugins/β meaning the specified filename must begin with exactly that string. no wiggle room. and btw, it is the database administrator's responsibility to ensure that only "safe" libraries are installed there π so like, keep an eye on that, fr fr.
π₯ COMPATIBILITY π₯
LOAD is a PostgreSQL extension. that's it, that's the whole section π she's a homegrown icon.
π SEE ALSO π
CREATE FUNCTION(CREATE_FUNCTION(7))
and that's the page bestie!! π slay, you read the whole thing π
with love from the PostgreSQL 13.23 docs, dated 2025 β mwah π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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