diff options
author | Peter Eisentraut | 2018-11-13 09:42:43 +0000 |
---|---|---|
committer | Peter Eisentraut | 2018-11-20 08:50:08 +0000 |
commit | 390301ce630c9bbececef169130694acc06fafe2 (patch) | |
tree | b1db40bbae80a9f9a7688e0bcff51273c4114b3e | |
parent | 8af1511e9cb5fbcfe47cb081ff9a1800fee73348 (diff) |
doc: Clarify CREATE TYPE ENUM documentation
The documentation claimed that an enum type requires "one or more"
labels, but since 1fd9883ff49, zero labels are also allowed.
Reported-by: Lukas Eder <lukas.eder@gmail.com>
Bug: #15356
-rw-r--r-- | doc/src/sgml/ref/create_type.sgml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/src/sgml/ref/create_type.sgml b/doc/src/sgml/ref/create_type.sgml index 5a09f1942a7..3f544138877 100644 --- a/doc/src/sgml/ref/create_type.sgml +++ b/doc/src/sgml/ref/create_type.sgml @@ -117,9 +117,12 @@ CREATE TYPE <replaceable class="parameter">name</replaceable> <para> The second form of <command>CREATE TYPE</command> creates an enumerated (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 - 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> </refsect2> |