1 /*-------------------------------------------------------------------------
4 * definition of the system "shared description" relation
7 * NOTE: an object is identified by the OID of the row that primarily
8 * defines the object, plus the OID of the table that that row appears in.
9 * For example, a database is identified by the OID of its pg_database row
10 * plus the pg_class OID of table pg_database. This allows unique
11 * identification of objects without assuming that OIDs are unique
15 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
16 * Portions Copyright (c) 1994, Regents of the University of California
21 * the genbki.sh script reads this file and generates .bki
22 * information from the DATA() statements.
24 * XXX do NOT break up DATA() statements into multiple lines!
25 * the scripts are not as smart as you might think...
27 *-------------------------------------------------------------------------
29 #ifndef PG_SHDESCRIPTION_H
30 #define PG_SHDESCRIPTION_H
32 #include "catalog/genbki.h"
35 * pg_shdescription definition. cpp turns this into
36 * typedef struct FormData_pg_shdescription
39 #define SharedDescriptionRelationId 2396
41 CATALOG(pg_shdescription
,2396) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
43 Oid objoid
; /* OID of object itself */
44 Oid classoid
; /* OID of table containing object */
45 text description
; /* description of object */
46 } FormData_pg_shdescription
;
49 * Form_pg_shdescription corresponds to a pointer to a tuple with
50 * the format of pg_shdescription relation.
53 typedef FormData_pg_shdescription
*Form_pg_shdescription
;
56 * compiler constants for pg_shdescription
59 #define Natts_pg_shdescription 3
60 #define Anum_pg_shdescription_objoid 1
61 #define Anum_pg_shdescription_classoid 2
62 #define Anum_pg_shdescription_description 3
65 * initial contents of pg_shdescription
70 * Because the contents of this table are taken from the other *.h files,
71 * there is no initialization here. The initial contents are extracted
72 * by genbki.sh and loaded during initdb.
75 #endif /* PG_SHDESCRIPTION_H */