OSDN Git Service

Cross-data-type comparisons are now indexable by btrees, pursuant to my
[pg-rex/syncrep.git] / src / include / catalog / pg_amproc.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_amproc.h
4  *        definition of the system "amproc" relation (pg_amproc)
5  *        along with the relation's initial contents.
6  *
7  * The amproc table identifies support procedures associated with index
8  * opclasses.  These procedures can't be listed in pg_amop since they are
9  * not the implementation of any indexable operator for the opclass.
10  *
11  * The primary key for this table is <amopclaid, amprocsubtype, amprocnum>.
12  * amprocsubtype is equal to zero for an opclass's "default" procedures.
13  * Usually a nondefault amprocsubtype indicates a support procedure to be
14  * used with operators having the same nondefault amopsubtype.  The exact
15  * behavior depends on the index AM, however, and some don't pay attention
16  * to subtype at all.
17  *
18  *
19  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
20  * Portions Copyright (c) 1994, Regents of the University of California
21  *
22  * $Id: pg_amproc.h,v 1.45 2003/11/12 21:15:57 tgl Exp $
23  *
24  * NOTES
25  *        the genbki.sh script reads this file and generates .bki
26  *        information from the DATA() statements.
27  *
28  *-------------------------------------------------------------------------
29  */
30 #ifndef PG_AMPROC_H
31 #define PG_AMPROC_H
32
33 /* ----------------
34  *              postgres.h contains the system type definitions and the
35  *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
36  *              can be read by both genbki.sh and the C compiler.
37  * ----------------
38  */
39
40 /* ----------------
41  *              pg_amproc definition.  cpp turns this into
42  *              typedef struct FormData_pg_amproc
43  * ----------------
44  */
45 CATALOG(pg_amproc) BKI_WITHOUT_OIDS
46 {
47         Oid                     amopclaid;              /* the index opclass this entry is for */
48         Oid                     amprocsubtype;  /* procedure subtype, or zero if default */
49         int2            amprocnum;              /* support procedure index */
50         regproc         amproc;                 /* OID of the proc */
51 } FormData_pg_amproc;
52
53 /* ----------------
54  *              Form_pg_amproc corresponds to a pointer to a tuple with
55  *              the format of pg_amproc relation.
56  * ----------------
57  */
58 typedef FormData_pg_amproc *Form_pg_amproc;
59
60 /* ----------------
61  *              compiler constants for pg_amproc
62  * ----------------
63  */
64 #define Natts_pg_amproc                                 4
65 #define Anum_pg_amproc_amopclaid                1
66 #define Anum_pg_amproc_amprocsubtype    2
67 #define Anum_pg_amproc_amprocnum                3
68 #define Anum_pg_amproc_amproc                   4
69
70 /* ----------------
71  *              initial contents of pg_amproc
72  * ----------------
73  */
74
75 /* rtree */
76 DATA(insert (    425    0 1     193 ));
77 DATA(insert (    425    0 2     194 ));
78 DATA(insert (    425    0 3     195 ));
79 DATA(insert (   1993    0 1     197 ));
80 DATA(insert (   1993    0 2     198 ));
81 DATA(insert (   1993    0 3     199 ));
82
83
84 /* btree */
85 DATA(insert (    397    0 1     382 ));
86 DATA(insert (    421    0 1     357 ));
87 DATA(insert (    423    0 1 1596 ));
88 DATA(insert (    424    0 1 1693 ));
89 DATA(insert (    426    0 1 1078 ));
90 DATA(insert (    428    0 1 1954 ));
91 DATA(insert (    429    0 1     358 ));
92 DATA(insert (    432    0 1     926 ));
93 DATA(insert (    434    0 1 1092 ));
94 DATA(insert (   1970    0 1     354 ));
95 DATA(insert (   1970  701 1     2194 ));
96 DATA(insert (   1972    0 1     355 ));
97 DATA(insert (   1972  700 1     2195 ));
98 DATA(insert (   1974    0 1     926 ));
99 DATA(insert (   1976    0 1     350 ));
100 DATA(insert (   1976   23 1     2190 ));
101 DATA(insert (   1976   20 1     2192 ));
102 DATA(insert (   1978    0 1     351 ));
103 DATA(insert (   1978   20 1     2188 ));
104 DATA(insert (   1978   21 1     2191 ));
105 DATA(insert (   1980    0 1     842 ));
106 DATA(insert (   1980   23 1     2189 ));
107 DATA(insert (   1980   21 1     2193 ));
108 DATA(insert (   1982    0 1 1315 ));
109 DATA(insert (   1984    0 1     836 ));
110 DATA(insert (   1986    0 1     359 ));
111 DATA(insert (   1988    0 1 1769 ));
112 DATA(insert (   1989    0 1     356 ));
113 DATA(insert (   1991    0 1     404 ));
114 DATA(insert (   1994    0 1     360 ));
115 DATA(insert (   1996    0 1 1107 ));
116 DATA(insert (   1998    0 1 1314 ));
117 DATA(insert (   2000    0 1 1358 ));
118 DATA(insert (   2002    0 1 1672 ));
119 DATA(insert (   2003    0 1     360 ));
120 DATA(insert (   2039    0 1 2045 ));
121 DATA(insert (   2095    0 1 2166 ));
122 DATA(insert (   2096    0 1 2166 ));
123 DATA(insert (   2097    0 1 2180 ));
124 DATA(insert (   2098    0 1 2187 ));
125 DATA(insert (   2099    0 1  377 ));
126 DATA(insert (   2233    0 1  380 ));
127 DATA(insert (   2234    0 1  381 ));
128
129
130 /* hash */
131 DATA(insert (    427    0 1 1080 ));
132 DATA(insert (    431    0 1     454 ));
133 DATA(insert (    433    0 1     456 ));
134 DATA(insert (    435    0 1     450 ));
135 DATA(insert (   1971    0 1     451 ));
136 DATA(insert (   1973    0 1     452 ));
137 DATA(insert (   1975    0 1     456 ));
138 DATA(insert (   1977    0 1     449 ));
139 DATA(insert (   1979    0 1     450 ));
140 DATA(insert (   1981    0 1     949 ));
141 DATA(insert (   1983    0 1 1697 ));
142 DATA(insert (   1985    0 1     399 ));
143 DATA(insert (   1987    0 1     455 ));
144 DATA(insert (   1990    0 1     453 ));
145 DATA(insert (   1992    0 1     457 ));
146 DATA(insert (   1995    0 1     400 ));
147 DATA(insert (   1997    0 1     452 ));
148 DATA(insert (   1999    0 1     452 ));
149 DATA(insert (   2001    0 1 1696 ));
150 DATA(insert (   2004    0 1     400 ));
151 DATA(insert (   2040    0 1     452 ));
152 DATA(insert (   2222    0 1     454 ));
153 DATA(insert (   2223    0 1     456 ));
154 DATA(insert (   2224    0 1     398 ));
155 DATA(insert (   2225    0 1     450 ));
156 DATA(insert (   2226    0 1     450 ));
157 DATA(insert (   2227    0 1     450 ));
158 DATA(insert (   2228    0 1     450 ));
159 DATA(insert (   2229    0 1     456 ));
160 DATA(insert (   2230    0 1     456 ));
161 DATA(insert (   2231    0 1     456 ));
162 DATA(insert (   2232    0 1     455 ));
163 DATA(insert (   2235    0 1     329 ));
164
165 #endif   /* PG_AMPROC_H */