Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / catalog / pg_enum.h
blobeab57fb2b98fe4104687529d691caff3fdffa2db
1 /*-------------------------------------------------------------------------
3 * pg_enum.h
4 * definition of the system "enum" relation (pg_enum)
5 * along with the relation's initial contents.
8 * Copyright (c) 2006-2008, PostgreSQL Global Development Group
10 * $PostgreSQL$
12 * NOTES
13 * the genbki.sh script reads this file and generates .bki
14 * information from the DATA() statements.
16 * XXX do NOT break up DATA() statements into multiple lines!
17 * the scripts are not as smart as you might think...
19 *-------------------------------------------------------------------------
21 #ifndef PG_ENUM_H
22 #define PG_ENUM_H
24 #include "catalog/genbki.h"
25 #include "nodes/pg_list.h"
27 /* ----------------
28 * pg_enum definition. cpp turns this into
29 * typedef struct FormData_pg_enum
30 * ----------------
32 #define EnumRelationId 3501
34 CATALOG(pg_enum,3501)
36 Oid enumtypid; /* OID of owning enum type */
37 NameData enumlabel; /* text representation of enum value */
38 } FormData_pg_enum;
40 /* ----------------
41 * Form_pg_enum corresponds to a pointer to a tuple with
42 * the format of pg_enum relation.
43 * ----------------
45 typedef FormData_pg_enum *Form_pg_enum;
47 /* ----------------
48 * compiler constants for pg_enum
49 * ----------------
51 #define Natts_pg_enum 2
52 #define Anum_pg_enum_enumtypid 1
53 #define Anum_pg_enum_enumlabel 2
55 /* ----------------
56 * pg_enum has no initial contents
57 * ----------------
61 * prototypes for functions in pg_enum.c
63 extern void EnumValuesCreate(Oid enumTypeOid, List *vals);
64 extern void EnumValuesDelete(Oid enumTypeOid);
66 #endif /* PG_ENUM_H */