LOAD(7)

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

πŸ’… LOAD(7) β€” the PostgreSQL glow-up page ✨

okay bestie, grab your boba because we're talking about LOAD, straight out of the PostgreSQL 14.24 Documentation πŸŽ€


🌸 NAME 🌸

LOAD β€” load a shared library file, no cap 🫢


✨ SYNOPSIS ✨

LOAD 'filename'

that's it. that's the whole vibe. πŸ’€


πŸ’– DESCRIPTION πŸ’–

okay so picture this: LOAD goes and shoves a shared library file directly into the PostgreSQL server's address space. literally just drops it in there. 🧚

and here's the cute part β€” if that file has already been loaded, the command just… does nothing. no error, no drama, no second helping. it's giving "already ate, thanks tho." πŸ’…

now for the plot twist πŸ”₯: shared library files that contain C functions get loaded automatically whenever one of their functions is called. so you don't usually need to be out here typing LOAD manually. an explicit LOAD is normally only needed when you're loading a library that changes the server's behavior through "hooks" instead of just handing you a nice little set of functions. iykyk. πŸͺ

🌈 the filename situation 🌈

so the library file name is typically given as just a bare file name β€” no path, no fuss β€” and the server goes looking for it in its library search path (the one set by dynamic_library_path, mwah 😘).

alternatively?? you can give it as a full path name. either way, the platform's standard shared library file name extension may be omitted, so you don't have to stress about it. πŸ’†β€β™€οΈ

want the full tea on this topic? See Section 38.10.1. go read it, bestie, it's important. πŸ“–

πŸ”’ the non-superuser rules πŸ”’

non-superusers can only apply LOAD to library files located in $libdir/plugins/ β€” and the specified filename must begin with exactly that string. like, exactly. no sneaky variations. πŸ™ˆ

and yes, it is the database administrator's responsibility to make sure only "safe" libraries are installed in there. so if something goes sideways, that's a DBA conversation, not a me conversation. 😭

πŸ‘‘ COMPATIBILITY πŸ‘‘

LOAD is a PostgreSQL extension. periodt. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹


and that's the page, bestie!! πŸ’– slayed, honestly. this was PostgreSQL 14.24, dated 2026, and you just got the full LOAD(7) experience β€” mwah, muah, mwah πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from