You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/sgml/ref/alter_type.sgml
+4-4
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ ALTER TYPE <replaceable class="PARAMETER">name</replaceable> OWNER TO <replaceab
28
28
ALTER TYPE <replaceable class="PARAMETER">name</replaceable> RENAME ATTRIBUTE <replaceable class="PARAMETER">attribute_name</replaceable> TO <replaceable class="PARAMETER">new_attribute_name</replaceable>
29
29
ALTER TYPE <replaceable class="PARAMETER">name</replaceable> RENAME TO <replaceable class="PARAMETER">new_name</replaceable>
30
30
ALTER TYPE <replaceable class="PARAMETER">name</replaceable> SET SCHEMA <replaceable class="PARAMETER">new_schema</replaceable>
31
-
ALTER TYPE <replaceable class="PARAMETER">name</replaceable> ADD <replaceable class="PARAMETER">new_enum_value</replaceable> [ { BEFORE | AFTER } <replaceable class="PARAMETER">existing_enum_value</replaceable> ]
31
+
ALTER TYPE <replaceable class="PARAMETER">name</replaceable> ADD VALUE <replaceable class="PARAMETER">new_enum_value</replaceable> [ { BEFORE | AFTER } <replaceable class="PARAMETER">existing_enum_value</replaceable> ]
32
32
33
33
<phrase>where <replaceable class="PARAMETER">action</replaceable> is one of:</phrase>
34
34
@@ -106,7 +106,7 @@ ALTER TYPE <replaceable class="PARAMETER">name</replaceable> ADD <replaceable cl
106
106
</varlistentry>
107
107
108
108
<varlistentry>
109
-
<term><literal>ADD [ BEFORE | AFTER ]</literal></term>
109
+
<term><literal>ADD VALUE [ BEFORE | AFTER ]</literal></term>
110
110
<listitem>
111
111
<para>
112
112
This form adds a new value to an enum type. If the new value's place in
@@ -238,7 +238,7 @@ ALTER TYPE <replaceable class="PARAMETER">name</replaceable> ADD <replaceable cl
238
238
<title>Notes</title>
239
239
240
240
<para>
241
-
<command>ALTER TYPE ... ADD</> (the form that adds a new value to an
241
+
<command>ALTER TYPE ... ADD VALUE</> (the form that adds a new value to an
242
242
enum type) cannot be executed inside a transaction block.
243
243
</para>
244
244
@@ -292,7 +292,7 @@ ALTER TYPE compfoo ADD ATTRIBUTE f3 int;
292
292
<para>
293
293
To add a new value to an enum type in a particular sort position:
0 commit comments