Commit 69bae237 authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Clarify CREATE TYPE ENUM documentation

The documentation claimed that an enum type requires "one or more"
labels, but since 1fd9883f, zero labels are also allowed.
Reported-by: default avatarLukas Eder <lukas.eder@gmail.com>
Bug: #15356
parent a568cada
...@@ -117,9 +117,12 @@ CREATE TYPE <replaceable class="parameter">name</replaceable> ...@@ -117,9 +117,12 @@ CREATE TYPE <replaceable class="parameter">name</replaceable>
<para> <para>
The second form of <command>CREATE TYPE</command> creates an enumerated The second form of <command>CREATE TYPE</command> creates an enumerated
(enum) type, as described in <xref linkend="datatype-enum"/>. (enum) type, as described in <xref linkend="datatype-enum"/>.
Enum types take a list of one or more quoted labels, each of which Enum types take a list of quoted labels, each of which
must be less than <symbol>NAMEDATALEN</symbol> bytes long (64 bytes in a must be less than <symbol>NAMEDATALEN</symbol> bytes long (64 bytes in a
standard <productname>PostgreSQL</productname> build). standard <productname>PostgreSQL</productname> build). (It is possible to
create an enumerated type with zero labels, but such a type cannot be used
to hold values before at least one label is added using <xref
linkend="sql-altertype"/>.)
</para> </para>
</refsect2> </refsect2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment