ALTER_LARGE_OBJECT(7pg14)
β¨ ALTER LARGE OBJECT β¨
okay so real talk bestie, we're in the PostgreSQL 14.24 Documentation and this page is all about ALTER LARGE OBJECT β the ALTER LARGE OBJECT(7) glow-up page, if you will π
πΈ NAME πΈ
ALTER_LARGE_OBJECT β change the definition of a large object π¦
π SYNOPSIS π
ALTER LARGE OBJECT large_object_oid OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
like, that's the whole vibe. one statement. one job. she's focused π
π DESCRIPTION π
ALTER LARGE OBJECT changes the definition of a large object. fr fr, that's it, that's the whole thing β¨
okay but here's the part where you gotta listen, bestie π β you must own the large object to use ALTER LARGE OBJECT. no ownership, no entry, iykyk. and if you're trying to alter the owner, you also have to be a direct or indirect member of the new owning role. like, you gotta be in the group chat to hand over the group chat, you know? π«Ά
(however, a superuser can alter any large object anyway β main character energy, they literally don't need permission π)
and here's the little plot twist: currently, the only functionality is to assign a new owner, so both restrictions always apply. every single time. no shortcuts, no workarounds, no cap π§
π PARAMETERS π
large_object_oidβ the OID of the large object to be altered. that's the one getting her moment π«new_ownerβ the new owner of the large object. passing the crown π
β COMPATIBILITY β
there is no ALTER LARGE OBJECT statement in the SQL standard. nope. not a thing. Postgres said "I'll make my own" and honestly? slay π
π₯ SEE ALSO π₯
- Chapter 35 β go read it, bestie, it's giving essential context π
vibe check reminder: own the object, be a member of the new owning role (or be a superuser, the ultimate flex), and you're golden π
signing off from the PostgreSQL 14.24 docs, dated 2026 β this has been ALTER LARGE OBJECT(7), and she ate, no crumbs πΈβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql14 14.24-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