diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index c9669b49512..6a61c0c5bf5 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,4 +1,4 @@ - + Data Types @@ -2742,6 +2742,10 @@ SELECT * FROM test1 WHERE a; enumerated (enum) + + enumerated types + + Enumerated (enum) types are data types that are comprised of a static, predefined set of values with a @@ -2886,6 +2890,13 @@ SELECT person.name, holidays.num_weeks FROM person, holidays Spaces in the labels are significant, too. + + The translations from internal enum values to textual labels are + kept in the system catalog + pg_enum. + Querying this catalog directly can be useful. + +