From: Tom Lane Date: Fri, 19 Dec 2008 01:34:19 +0000 (+0000) Subject: Add a couple of cross-references to the docs about enum types, per a X-Git-Tag: recoveryinfrav9~184 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=064182d59c8074a549066f3bf1ae1ce061ae8f30;p=users%2Fsimon%2Fpostgres.git Add a couple of cross-references to the docs about enum types, per a recent gripe that the info is hard to find. --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index d5942e81b9..c9d55a0136 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -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. + +