diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2018-12-11 11:21:36 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2018-12-11 11:21:50 -0500 |
| commit | 9fbe7d974026925dc6f671e72c47fae3b3e49688 (patch) | |
| tree | 69a9fceac1091781db2bb0532281f83d2d01a2cc /doc/src | |
| parent | 73822b8c9750c3d1da5232916c573319a80c24e3 (diff) | |
Doc: improve documentation about ALTER LARGE OBJECT requirements.
Unlike other ALTER ref pages, this one neglected to mention that
ALTER OWNER requires being a member of the new owning role.
Per bug #15546 from Stefan Kadow.
Discussion: https://postgr.es/m/15546-0558c75fd2025e7c@postgresql.org
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/ref/alter_large_object.sgml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/alter_large_object.sgml b/doc/src/sgml/ref/alter_large_object.sgml index f4a9c9e2a52..356f8a8eabf 100644 --- a/doc/src/sgml/ref/alter_large_object.sgml +++ b/doc/src/sgml/ref/alter_large_object.sgml @@ -30,9 +30,15 @@ ALTER LARGE OBJECT <replaceable class="parameter">large_object_oid</replaceable> <para> <command>ALTER LARGE OBJECT</command> changes the definition of a - large object. The only functionality is to assign a new owner. - You must be superuser or owner of the large object to use - <command>ALTER LARGE OBJECT</command>. + large object. + </para> + + <para> + You must own the large object to use <command>ALTER LARGE OBJECT</command>. + To alter the owner, you must also be a direct or indirect member of 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. </para> </refsect1> |
