2 .\" Title: ALTER CONVERSION
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "ALTER CONVERSION" "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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 ALTER_CONVERSION \- change the definition of a conversion
35 ALTER CONVERSION \fIname\fR RENAME TO \fInew_name\fR
36 ALTER CONVERSION \fIname\fR OWNER TO { \fInew_owner\fR | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
37 ALTER CONVERSION \fIname\fR SET SCHEMA \fInew_schema\fR
41 \fBALTER CONVERSION\fR
42 changes the definition of a conversion\&.
44 You must own the conversion to use
45 \fBALTER CONVERSION\fR\&. To alter the owner, you must be able to
47 to the new owning role, and that role must have
49 privilege on the conversion\*(Aqs schema\&. (These restrictions enforce that altering the owner doesn\*(Aqt do anything you couldn\*(Aqt do by dropping and recreating the conversion\&. However, a superuser can alter ownership of any conversion anyway\&.)
54 The name (optionally schema\-qualified) of an existing conversion\&.
59 The new name of the conversion\&.
64 The new owner of the conversion\&.
69 The new schema for the conversion\&.
73 To rename the conversion
82 ALTER CONVERSION iso_8859_1_to_utf8 RENAME TO latin1_to_unicode;
88 To change the owner of the conversion
97 ALTER CONVERSION iso_8859_1_to_utf8 OWNER TO joe;
105 \fBALTER CONVERSION\fR
106 statement in the SQL standard\&.
108 CREATE CONVERSION (\fBCREATE_CONVERSION\fR(7)), DROP CONVERSION (\fBDROP_CONVERSION\fR(7))