mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Completion of project to use fixed OIDs for all system catalogs and
indexes. Replace all heap_openr and index_openr calls by heap_open and index_open. Remove runtime lookups of catalog OID numbers in various places. Remove relcache's support for looking up system catalogs by name. Bulky but mostly very boring patch ...
This commit is contained in:
contrib
src
backend
access
bootstrap
catalog
aclchk.ccatalog.cdependency.cgenbki.shheap.cindex.cnamespace.cpg_aggregate.cpg_constraint.cpg_conversion.cpg_depend.cpg_largeobject.cpg_namespace.cpg_operator.cpg_proc.cpg_type.c
commands
aggregatecmds.canalyze.casync.ccluster.ccomment.cconversioncmds.ccopy.cdbcommands.cfunctioncmds.cindexcmds.copclasscmds.coperatorcmds.cproclang.cschemacmds.ctablecmds.ctablespace.ctrigger.ctypecmds.cuser.cvacuum.c
executor
optimizer
util
parser
postmaster
rewrite
storage
large_object
utils
include
pl
plpgsql
src
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/operatorcmds.c,v 1.20 2004/12/31 21:59:41 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/operatorcmds.c,v 1.21 2005/04/14 20:03:24 tgl Exp $
|
||||
*
|
||||
* DESCRIPTION
|
||||
* The "DefineFoo" routines take the parse tree and pick out the
|
||||
@ -35,7 +35,6 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/heapam.h"
|
||||
#include "catalog/catname.h"
|
||||
#include "catalog/dependency.h"
|
||||
#include "catalog/indexing.h"
|
||||
#include "catalog/namespace.h"
|
||||
@ -234,7 +233,7 @@ RemoveOperator(RemoveOperStmt *stmt)
|
||||
/*
|
||||
* Do the deletion
|
||||
*/
|
||||
object.classId = get_system_catalog_relid(OperatorRelationName);
|
||||
object.classId = OperatorRelationId;
|
||||
object.objectId = operOid;
|
||||
object.objectSubId = 0;
|
||||
|
||||
@ -250,7 +249,7 @@ RemoveOperatorById(Oid operOid)
|
||||
Relation relation;
|
||||
HeapTuple tup;
|
||||
|
||||
relation = heap_openr(OperatorRelationName, RowExclusiveLock);
|
||||
relation = heap_open(OperatorRelationId, RowExclusiveLock);
|
||||
|
||||
tup = SearchSysCache(OPEROID,
|
||||
ObjectIdGetDatum(operOid),
|
||||
@ -277,7 +276,7 @@ AlterOperatorOwner(List *name, TypeName *typeName1, TypeName *typeName2,
|
||||
Relation rel;
|
||||
Form_pg_operator oprForm;
|
||||
|
||||
rel = heap_openr(OperatorRelationName, RowExclusiveLock);
|
||||
rel = heap_open(OperatorRelationId, RowExclusiveLock);
|
||||
|
||||
operOid = LookupOperNameTypeNames(name, typeName1, typeName2,
|
||||
false);
|
||||
|
Reference in New Issue
Block a user