ALTER_LARGE_OBJECT(7pg17)
π NAME π
okay so welcome to the ALTER LARGE OBJECT(7) page β thatβs the ALTER_LARGE_OBJECT(7pg17) one if youβre peeking at the filename, bestie. This is the manual for changing the definition of a large object. iconic little admin moment. β¨
π SYNOPSIS π
ALTER LARGE OBJECT large_object_oid OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
π¦ DESCRIPTION π¦
ALTER LARGE OBJECT changes the definition of a large object. Thatβs the whole main-character move, no cap. π«
You must own the large object to use ALTER LARGE OBJECT. And to alter the owner, you also have to be able to SET ROLE to the new owning role. both of those, bestie β yes, both. π (However, a superuser can alter any large object anyway, because superuser privileges stay iconic like that. π)
Currently, the only functionality is to assign a new owner, so both restrictions always apply. Fr fr. π
πΈ PARAMETERS πΈ
large_object_oidβ the OID of the large object to be altered. Thatβs the one getting the makeover. πnew_ownerβ the new owner of the large object. Hand over the keys, bestie. π
π COMPATIBILITY π
There is no ALTER LARGE OBJECT statement in the SQL standard. Itβs just not there, and thatβs the tea. π
π«Ά SEE ALSO π«Ά
- Chapter 33 β go read it, iykyk. π
π sign-off time: this page is from PostgreSQL 17.11, dated 2026, and itβs literally the ALTER LARGE OBJECT(7) manual. Slay. π
β¨
π¦ 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