|
8 | 8 | * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
9 | 9 | * Portions Copyright (c) 1994, Regents of the University of California
|
10 | 10 | *
|
11 |
| - * $PostgreSQL: pgsql/src/include/catalog/pg_am.h,v 1.49 2007/01/09 02:14:15 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/include/catalog/pg_am.h,v 1.50 2007/01/20 23:13:01 tgl Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * the genbki.sh script reads this file and generates .bki
|
@@ -45,12 +45,7 @@ CATALOG(pg_am,2601)
|
45 | 45 | * strategy assignments. */
|
46 | 46 | int2 amsupport; /* total number of support functions that this
|
47 | 47 | * AM uses */
|
48 |
| - int2 amorderstrategy;/* if this AM has a sort order, the strategy |
49 |
| - * number of the default (ASC) sort operator. |
50 |
| - * Zero if AM is not ordered. */ |
51 |
| - int2 amdescorder; /* if this AM has a sort order, the strategy |
52 |
| - * number of the DESC sort operator. |
53 |
| - * Zero if AM is not ordered. */ |
| 48 | + bool amcanorder; /* does AM support ordered scan results? */ |
54 | 49 | bool amcanunique; /* does AM support UNIQUE indexes? */
|
55 | 50 | bool amcanmulticol; /* does AM support multi-column indexes? */
|
56 | 51 | bool amoptionalkey; /* can query omit key for the first column? */
|
@@ -83,47 +78,46 @@ typedef FormData_pg_am *Form_pg_am;
|
83 | 78 | * compiler constants for pg_am
|
84 | 79 | * ----------------
|
85 | 80 | */
|
86 |
| -#define Natts_pg_am 24 |
| 81 | +#define Natts_pg_am 23 |
87 | 82 | #define Anum_pg_am_amname 1
|
88 | 83 | #define Anum_pg_am_amstrategies 2
|
89 | 84 | #define Anum_pg_am_amsupport 3
|
90 |
| -#define Anum_pg_am_amorderstrategy 4 |
91 |
| -#define Anum_pg_am_amdescorder 5 |
92 |
| -#define Anum_pg_am_amcanunique 6 |
93 |
| -#define Anum_pg_am_amcanmulticol 7 |
94 |
| -#define Anum_pg_am_amoptionalkey 8 |
95 |
| -#define Anum_pg_am_amindexnulls 9 |
96 |
| -#define Anum_pg_am_amstorage 10 |
97 |
| -#define Anum_pg_am_amclusterable 11 |
98 |
| -#define Anum_pg_am_aminsert 12 |
99 |
| -#define Anum_pg_am_ambeginscan 13 |
100 |
| -#define Anum_pg_am_amgettuple 14 |
101 |
| -#define Anum_pg_am_amgetmulti 15 |
102 |
| -#define Anum_pg_am_amrescan 16 |
103 |
| -#define Anum_pg_am_amendscan 17 |
104 |
| -#define Anum_pg_am_ammarkpos 18 |
105 |
| -#define Anum_pg_am_amrestrpos 19 |
106 |
| -#define Anum_pg_am_ambuild 20 |
107 |
| -#define Anum_pg_am_ambulkdelete 21 |
108 |
| -#define Anum_pg_am_amvacuumcleanup 22 |
109 |
| -#define Anum_pg_am_amcostestimate 23 |
110 |
| -#define Anum_pg_am_amoptions 24 |
| 85 | +#define Anum_pg_am_amcanorder 4 |
| 86 | +#define Anum_pg_am_amcanunique 5 |
| 87 | +#define Anum_pg_am_amcanmulticol 6 |
| 88 | +#define Anum_pg_am_amoptionalkey 7 |
| 89 | +#define Anum_pg_am_amindexnulls 8 |
| 90 | +#define Anum_pg_am_amstorage 9 |
| 91 | +#define Anum_pg_am_amclusterable 10 |
| 92 | +#define Anum_pg_am_aminsert 11 |
| 93 | +#define Anum_pg_am_ambeginscan 12 |
| 94 | +#define Anum_pg_am_amgettuple 13 |
| 95 | +#define Anum_pg_am_amgetmulti 14 |
| 96 | +#define Anum_pg_am_amrescan 15 |
| 97 | +#define Anum_pg_am_amendscan 16 |
| 98 | +#define Anum_pg_am_ammarkpos 17 |
| 99 | +#define Anum_pg_am_amrestrpos 18 |
| 100 | +#define Anum_pg_am_ambuild 19 |
| 101 | +#define Anum_pg_am_ambulkdelete 20 |
| 102 | +#define Anum_pg_am_amvacuumcleanup 21 |
| 103 | +#define Anum_pg_am_amcostestimate 22 |
| 104 | +#define Anum_pg_am_amoptions 23 |
111 | 105 |
|
112 | 106 | /* ----------------
|
113 | 107 | * initial contents of pg_am
|
114 | 108 | * ----------------
|
115 | 109 | */
|
116 | 110 |
|
117 |
| -DATA(insert OID = 403 ( btree 5 1 1 5 t t t t f t btinsert btbeginscan btgettuple btgetmulti btrescan btendscan btmarkpos btrestrpos btbuild btbulkdelete btvacuumcleanup btcostestimate btoptions )); |
| 111 | +DATA(insert OID = 403 ( btree 5 1 t t t t t f t btinsert btbeginscan btgettuple btgetmulti btrescan btendscan btmarkpos btrestrpos btbuild btbulkdelete btvacuumcleanup btcostestimate btoptions )); |
118 | 112 | DESCR("b-tree index access method");
|
119 | 113 | #define BTREE_AM_OID 403
|
120 |
| -DATA(insert OID = 405 ( hash 1 1 0 0 f f f f f f hashinsert hashbeginscan hashgettuple hashgetmulti hashrescan hashendscan hashmarkpos hashrestrpos hashbuild hashbulkdelete hashvacuumcleanup hashcostestimate hashoptions )); |
| 114 | +DATA(insert OID = 405 ( hash 1 1 f f f f f f f hashinsert hashbeginscan hashgettuple hashgetmulti hashrescan hashendscan hashmarkpos hashrestrpos hashbuild hashbulkdelete hashvacuumcleanup hashcostestimate hashoptions )); |
121 | 115 | DESCR("hash index access method");
|
122 | 116 | #define HASH_AM_OID 405
|
123 |
| -DATA(insert OID = 783 ( gist 0 7 0 0 f t t t t t gistinsert gistbeginscan gistgettuple gistgetmulti gistrescan gistendscan gistmarkpos gistrestrpos gistbuild gistbulkdelete gistvacuumcleanup gistcostestimate gistoptions )); |
| 117 | +DATA(insert OID = 783 ( gist 0 7 f f t t t t t gistinsert gistbeginscan gistgettuple gistgetmulti gistrescan gistendscan gistmarkpos gistrestrpos gistbuild gistbulkdelete gistvacuumcleanup gistcostestimate gistoptions )); |
124 | 118 | DESCR("GiST index access method");
|
125 | 119 | #define GIST_AM_OID 783
|
126 |
| -DATA(insert OID = 2742 ( gin 0 4 0 0 f f f f t f gininsert ginbeginscan gingettuple gingetmulti ginrescan ginendscan ginmarkpos ginrestrpos ginbuild ginbulkdelete ginvacuumcleanup gincostestimate ginoptions )); |
| 120 | +DATA(insert OID = 2742 ( gin 0 4 f f f f f t f gininsert ginbeginscan gingettuple gingetmulti ginrescan ginendscan ginmarkpos ginrestrpos ginbuild ginbulkdelete ginvacuumcleanup gincostestimate ginoptions )); |
127 | 121 | DESCR("GIN index access method");
|
128 | 122 | #define GIN_AM_OID 2742
|
129 | 123 |
|
|
0 commit comments