]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_am.h
remove:
[postgresql] / src / include / catalog / pg_am.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_am.h--
4  *    definition of the system "am" relation (pg_am)
5  *    along with the relation's initial contents.
6  *
7  *
8  * Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: pg_am.h,v 1.2 1996/10/31 09:47:07 scrappy Exp $
11  *
12  * NOTES
13  *      the genbki.sh script reads this file and generates .bki
14  *      information from the DATA() statements.
15  *
16  *      XXX do NOT break up DATA() statements into multiple lines!
17  *          the scripts are not as smart as you might think...
18  *
19  *-------------------------------------------------------------------------
20  */
21 #ifndef PG_AM_H
22 #define PG_AM_H
23
24 /* ----------------
25  *      postgres.h contains the system type definintions and the
26  *      CATALOG(), BOOTSTRAP and DATA() sugar words so this file
27  *      can be read by both genbki.sh and the C compiler.
28  * ----------------
29  */
30
31 /* ----------------
32  *      pg_am definition.  cpp turns this into
33  *      typedef struct FormData_pg_am
34  * ----------------
35  */ 
36 CATALOG(pg_am) {
37     NameData    amname;
38     Oid         amowner;
39     char        amkind;
40     int2        amstrategies;
41     int2        amsupport;
42     regproc     amgettuple;
43     regproc     aminsert;
44     regproc     amdelete;
45     regproc     amgetattr;
46     regproc     amsetlock;
47     regproc     amsettid;
48     regproc     amfreetuple;
49     regproc     ambeginscan;
50     regproc     amrescan;
51     regproc     amendscan;
52     regproc     ammarkpos;
53     regproc     amrestrpos;
54     regproc     amopen;
55     regproc     amclose;
56     regproc     ambuild;
57     regproc     amcreate; 
58     regproc     amdestroy;
59 } FormData_pg_am;
60
61 /* ----------------
62  *      Form_pg_am corresponds to a pointer to a tuple with
63  *      the format of pg_am relation.
64  * ----------------
65  */
66 typedef FormData_pg_am  *Form_pg_am;
67
68 /* ----------------
69  *      compiler constants for pg_am
70  * ----------------
71  */
72 #define Natts_pg_am                     22
73 #define Anum_pg_am_amname               1
74 #define Anum_pg_am_amowner              2
75 #define Anum_pg_am_amkind               3
76 #define Anum_pg_am_amstrategies         4
77 #define Anum_pg_am_amsupport            5
78 #define Anum_pg_am_amgettuple           6
79 #define Anum_pg_am_aminsert             7
80 #define Anum_pg_am_amdelete             8
81 #define Anum_pg_am_amgetattr            9
82 #define Anum_pg_am_amsetlock            10
83 #define Anum_pg_am_amsettid             11
84 #define Anum_pg_am_amfreetuple          12
85 #define Anum_pg_am_ambeginscan          13
86 #define Anum_pg_am_amrescan             14
87 #define Anum_pg_am_amendscan            15
88 #define Anum_pg_am_ammarkpos            16
89 #define Anum_pg_am_amrestrpos           17
90 #define Anum_pg_am_amopen               18
91 #define Anum_pg_am_amclose              19
92 #define Anum_pg_am_ambuild              20
93 #define Anum_pg_am_amcreate             21
94 #define Anum_pg_am_amdestroy            22
95
96 /* ----------------
97  *      initial contents of pg_am
98  * ----------------
99  */
100
101 DATA(insert OID = 405 (  hash PGUID "o"  1 1 hashgettuple hashinsert hashdelete - - - - hashbeginscan hashrescan hashendscan hashmarkpos hashrestrpos - - hashbuild - - ));
102 DATA(insert OID = 402 (  rtree PGUID "o" 8 3 rtgettuple rtinsert rtdelete - - - - rtbeginscan rtrescan rtendscan rtmarkpos rtrestrpos - - rtbuild - - ));
103 DATA(insert OID = 403 (  btree PGUID "o" 5 1 btgettuple btinsert btdelete - - - - btbeginscan btrescan btendscan btmarkpos btrestrpos - - btbuild - - ));
104 #define BTREE_AM_OID 403
105 DATA(insert OID = 783 (  gist PGUID "o" 100 7 gistgettuple gistinsert gistdelete - - - - gistbeginscan gistrescan gistendscan gistmarkpos gistrestrpos - - gistbuild - - ));
106
107 BKI_BEGIN
108 #ifdef NOBTREE
109 BKI_END
110 DATA(insert OID = 404 (  nobtree PGUID "o" 5 1 nobtgettuple nobtinsert nobtdelete - - - - nobtbeginscan nobtrescan nobtendscan nobtmarkpos nobtrestrpos - - nobtbuild - - ));
111 BKI_BEGIN
112 #endif /* NOBTREE */
113 BKI_END
114
115 #endif /* PG_AM_H */