aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/syscache.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-11-01 02:29:27 +0000
committerBruce Momjian <bruce@momjian.us>1999-11-01 02:29:27 +0000
commitd16b706e7af98f7382198c0d53e1ba19d8c99fa5 (patch)
treea2ec3dc11a8a7aec5ce97899c164b76f8e0eaad6 /src/backend/utils/cache/syscache.c
parent1973e90ce2ca366fe8e0f29e4115ea69a5b277c0 (diff)
downloadpostgresql-d16b706e7af98f7382198c0d53e1ba19d8c99fa5.tar.gz
postgresql-d16b706e7af98f7382198c0d53e1ba19d8c99fa5.zip
Allow indexes on system catalogs for use in cache code.
Thanks to Hiroshi
Diffstat (limited to 'src/backend/utils/cache/syscache.c')
-rw-r--r--src/backend/utils/cache/syscache.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c
index 53917f92c56..3cb393b802f 100644
--- a/src/backend/utils/cache/syscache.c
+++ b/src/backend/utils/cache/syscache.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.37 1999/09/30 10:31:43 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.38 1999/11/01 02:29:25 momjian Exp $
*
* NOTES
* These routines allow the parser/planner/executor to perform
@@ -59,8 +59,8 @@ static struct cachedesc cacheinfo[] = {
0
},
sizeof(FormData_pg_amop),
- NULL,
- (ScanFunc) NULL},
+ AccessMethodOpidIndex,
+ (ScanFunc) AccessMethodOpidIndexScan},
{AccessMethodOperatorRelationName, /* AMOPSTRATEGY */
3,
{
@@ -70,8 +70,8 @@ static struct cachedesc cacheinfo[] = {
0
},
sizeof(FormData_pg_amop),
- NULL,
- (ScanFunc) NULL},
+ AccessMethodStrategyIndex,
+ (ScanFunc) AccessMethodStrategyIndexScan},
{AttributeRelationName, /* ATTNAME */
2,
{
@@ -103,8 +103,8 @@ static struct cachedesc cacheinfo[] = {
0
},
offsetof(FormData_pg_index, indpred),
- NULL,
- NULL},
+ IndexRelidIndex,
+ (ScanFunc) IndexRelidIndexScan},
{LanguageRelationName, /* LANNAME */
1,
{
@@ -226,17 +226,6 @@ static struct cachedesc cacheinfo[] = {
sizeof(FormData_pg_opclass),
NULL,
NULL},
- {IndexRelationName, /* INDRELIDKEY *//* never used */
- 2,
- {
- Anum_pg_index_indrelid,
- Anum_pg_index_indkey,
- 0,
- 0
- },
- offsetof(FormData_pg_index, indpred),
- NULL,
- (ScanFunc) NULL},
{InheritsRelationName, /* INHRELID */
2,
{