mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
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.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* 1999 Jan Wieck
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.2 1999/10/08 12:00:08 wieck Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.3 1999/11/22 17:56:29 momjian Exp $
|
||||
*
|
||||
* ----------
|
||||
*/
|
||||
@@ -1073,7 +1073,7 @@ ri_AttributesEqual(Oid typeid, Datum oldvalue, Datum newvalue)
|
||||
elog(FATAL, "error in RI operator cache");
|
||||
|
||||
/* ----------
|
||||
* If not found, lookup the OPRNAME system cache for it
|
||||
* If not found, lookup the OPERNAME system cache for it
|
||||
* and remember that info.
|
||||
* ----------
|
||||
*/
|
||||
@@ -1082,7 +1082,7 @@ ri_AttributesEqual(Oid typeid, Datum oldvalue, Datum newvalue)
|
||||
HeapTuple opr_tup;
|
||||
Form_pg_operator opr_struct;
|
||||
|
||||
opr_tup = SearchSysCacheTuple(OPRNAME,
|
||||
opr_tup = SearchSysCacheTuple(OPERNAME,
|
||||
PointerGetDatum("="),
|
||||
ObjectIdGetDatum(typeid),
|
||||
ObjectIdGetDatum(typeid),
|
||||
|
Reference in New Issue
Block a user