LOAD(7)

πŸ“¦ version 16.15, in opensuse-leap 16.0

🌸 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 apply LOAD to 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 πŸŽ€


Stay loaded, bestie 🫢 β€” PostgreSQL 16.15 Documentation Β· 2026 Β· LOAD(7).

πŸ“¦ where this page comes from