1ALTER CONVERSION(7) SQL Commands ALTER CONVERSION(7)
2
3
4
6 ALTER CONVERSION - change the definition of a conversion
7
8
10 ALTER CONVERSION name RENAME TO newname
11 ALTER CONVERSION name OWNER TO newowner
12
13
15 ALTER CONVERSION changes the definition of a conversion.
16
17 You must own the conversion to use ALTER CONVERSION. To alter the
18 owner, you must also be a direct or indirect member of the new owning
19 role, and that role must have CREATE privilege on the conversion's
20 schema. (These restrictions enforce that altering the owner doesn't do
21 anything you couldn't do by dropping and recreating the conversion.
22 However, a superuser can alter ownership of any conversion anyway.)
23
25 name The name (optionally schema-qualified) of an existing conver‐
26 sion.
27
28 newname
29 The new name of the conversion.
30
31 newowner
32 The new owner of the conversion.
33
35 To rename the conversion iso_8859_1_to_utf8 to latin1_to_unicode:
36
37 ALTER CONVERSION iso_8859_1_to_utf8 RENAME TO latin1_to_unicode;
38
39
40 To change the owner of the conversion iso_8859_1_to_utf8 to joe:
41
42 ALTER CONVERSION iso_8859_1_to_utf8 OWNER TO joe;
43
44
46 There is no ALTER CONVERSION statement in the SQL standard.
47
49 CREATE CONVERSION [create_conversion(7)], DROP CONVERSION [drop_conver‐
50 sion(7)]
51
52
53
54SQL - Language Statements 2014-02-17 ALTER CONVERSION(7)