SQL Commands / Other Objects
ALTER LARGE OBJECT
Read the PG 18 manualchange the definition of a large object
Reading PG 18current·documented in 18 of 30 versions, 9.0 to 20
Syntax
ALTER LARGE OBJECT large_object_oid OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
Syntax diagrams
Read left to right. Branches are choices, bypasses are optional, loops repeat. Select an underlined parameter to open its rule.
Description
ALTER LARGE OBJECT changes the definition of a large object.
You must own the large object to use ALTER LARGE OBJECT. To alter the owner, you must also be able to SET ROLE to the new owning role. (However, a superuser can alter any large object anyway.) Currently, the only functionality is to assign a new owner, so both restrictions always apply.
Parameters
large_object_oidOID of the large object to be altered
new_ownerThe new owner of the large object
Compatibility
There is no ALTER LARGE OBJECT statement in the SQL standard.
See Also
Chapter 33Version history 10
Definition snapshot: b7bd9cda · English manual source