diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-11-22 17:56:41 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-11-22 17:56:41 +0000 |
commit | fc955b14ea667e04475e2b7339c8445611470771 (patch) | |
tree | 5f5a3760e1e5cdfe910125817d9217b837eab23b /src/backend/commands/indexcmds.c | |
parent | e30c2d67ef1c58d148bdc1b3a7faeed7b17d8b28 (diff) | |
download | postgresql-fc955b14ea667e04475e2b7339c8445611470771.tar.gz postgresql-fc955b14ea667e04475e2b7339c8445611470771.zip |
Add system indexes to match all caches.
Make all system indexes unique.
Make all cache loads use system indexes.
Rename *rel to *relid in inheritance tables.
Rename cache names to be clearer.
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r-- | src/backend/commands/indexcmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 1e110bcdb9c..62eed986657 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.13 1999/11/07 23:08:02 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.14 1999/11/22 17:56:01 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -310,7 +310,7 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable) /* FIgetnArgs(funcInfo) = numberOfAttributes; */ FIsetnArgs(funcInfo, numberOfAttributes); - tuple = SearchSysCacheTuple(PROOID, + tuple = SearchSysCacheTuple(PROCOID, ObjectIdGetDatum(indproc), 0, 0, 0); if (!HeapTupleIsValid(tuple)) @@ -482,7 +482,7 @@ NormIndexAttrs(List *attList, /* list of IndexElem's */ /* we want the type so we can set the proper alignment, etc. */ if (attribute->typename == NULL) { - tuple = SearchSysCacheTuple(TYPOID, + tuple = SearchSysCacheTuple(TYPEOID, ObjectIdGetDatum(attform->atttypid), 0, 0, 0); if (!HeapTupleIsValid(tuple)) |