1ALTER CONVERSION(7) PostgreSQL 14.3 Documentation ALTER CONVERSION(7)
2
3
4
6 ALTER_CONVERSION - change the definition of a conversion
7
9 ALTER CONVERSION name RENAME TO new_name
10 ALTER CONVERSION name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }
11 ALTER CONVERSION name SET SCHEMA new_schema
12
14 ALTER CONVERSION changes the definition of a conversion.
15
16 You must own the conversion to use ALTER CONVERSION. To alter the
17 owner, you must also be a direct or indirect member of the new owning
18 role, and that role must have CREATE privilege on the conversion's
19 schema. (These restrictions enforce that altering the owner doesn't do
20 anything you couldn't do by dropping and recreating the conversion.
21 However, a superuser can alter ownership of any conversion anyway.)
22
24 name
25 The name (optionally schema-qualified) of an existing conversion.
26
27 new_name
28 The new name of the conversion.
29
30 new_owner
31 The new owner of the conversion.
32
33 new_schema
34 The new schema for the conversion.
35
37 To rename the conversion iso_8859_1_to_utf8 to latin1_to_unicode:
38
39 ALTER CONVERSION iso_8859_1_to_utf8 RENAME TO latin1_to_unicode;
40
41 To change the owner of the conversion iso_8859_1_to_utf8 to joe:
42
43 ALTER CONVERSION iso_8859_1_to_utf8 OWNER TO joe;
44
46 There is no ALTER CONVERSION statement in the SQL standard.
47
49 CREATE CONVERSION (CREATE_CONVERSION(7)), DROP CONVERSION
50 (DROP_CONVERSION(7))
51
52
53
54PostgreSQL 14.3 2022 ALTER CONVERSION(7)