]> begriffs open source - ai-pg/blob - full-docs/man7/ALTER_LARGE_OBJECT.7
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / man7 / ALTER_LARGE_OBJECT.7
1 '\" t
2 .\"     Title: ALTER LARGE OBJECT
3 .\"    Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\"      Date: 2025
6 .\"    Manual: PostgreSQL 18.0 Documentation
7 .\"    Source: PostgreSQL 18.0
8 .\"  Language: English
9 .\"
10 .TH "ALTER LARGE OBJECT" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 ALTER_LARGE_OBJECT \- change the definition of a large object
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 ALTER LARGE OBJECT \fIlarge_object_oid\fR OWNER TO { \fInew_owner\fR | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
36 .fi
37 .SH "DESCRIPTION"
38 .PP
39 \fBALTER LARGE OBJECT\fR
40 changes the definition of a large object\&.
41 .PP
42 You must own the large object to use
43 \fBALTER LARGE OBJECT\fR\&. To alter the owner, you must also be able to
44 SET ROLE
45 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\&.
46 .SH "PARAMETERS"
47 .PP
48 \fIlarge_object_oid\fR
49 .RS 4
50 OID of the large object to be altered
51 .RE
52 .PP
53 \fInew_owner\fR
54 .RS 4
55 The new owner of the large object
56 .RE
57 .SH "COMPATIBILITY"
58 .PP
59 There is no
60 \fBALTER LARGE OBJECT\fR
61 statement in the SQL standard\&.
62 .SH "SEE ALSO"
63 Chapter\ \&33