Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite32014d

Browse files
committed
Add a couple of cross-references to the docs about enum types, per a
recent gripe that the info is hard to find.
1 parent382af3a commite32014d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

‎doc/src/sgml/datatype.sgml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.234 2008/11/11 02:42:31 tgl Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.235 2008/12/19 01:34:19 tgl Exp $ -->
22

33
<chapter id="datatype">
44
<title id="datatype-title">Data Types</title>
@@ -2742,6 +2742,10 @@ SELECT * FROM test1 WHERE a;
27422742
<secondary>enumerated (enum)</secondary>
27432743
</indexterm>
27442744

2745+
<indexterm zone="datatype-enum">
2746+
<primary>enumerated types</primary>
2747+
</indexterm>
2748+
27452749
<para>
27462750
Enumerated (enum) types are data types that
27472751
are comprised of a static, predefined set of values with a
@@ -2886,6 +2890,13 @@ SELECT person.name, holidays.num_weeks FROM person, holidays
28862890
Spaces in the labels are significant, too.
28872891
</para>
28882892

2893+
<para>
2894+
The translations from internal enum values to textual labels are
2895+
kept in the system catalog
2896+
<link linkend="catalog-pg-enum"><structname>pg_enum</structname></link>.
2897+
Querying this catalog directly can be useful.
2898+
</para>
2899+
28892900
</sect2>
28902901
</sect1>
28912902

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp