Add a couple of cross-references to the docs about enum types, per a
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Dec 2008 01:34:19 +0000 (01:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Dec 2008 01:34:19 +0000 (01:34 +0000)
recent gripe that the info is hard to find.

doc/src/sgml/datatype.sgml

index d5942e81b90a51f3dcfcc54cf112418577031c0a..c9d55a0136e966396640476cd3861cc7711b3263 100644 (file)
@@ -2742,6 +2742,10 @@ SELECT * FROM test1 WHERE a;
     <secondary>enumerated (enum)</secondary>
    </indexterm>
 
+   <indexterm zone="datatype-enum">
+    <primary>enumerated types</primary>
+   </indexterm>
+
    <para>
     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.
     </para>
 
+    <para>
+     The translations from internal enum values to textual labels are
+     kept in the system catalog
+     <link linkend="catalog-pg-enum"><structname>pg_enum</structname></link>.
+     Querying this catalog directly can be useful.
+    </para>
+
    </sect2>
   </sect1>