rel = heap_open(DatabaseRelationId, AccessShareLock);
ScanKeyInit(&skey,
- ObjectIdAttributeNumber,
+ Anum_pg_database_oid,
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(databaseId));
rel = heap_open(ProcedureRelationId, AccessShareLock);
ScanKeyInit(&skey,
- ObjectIdAttributeNumber,
+ Anum_pg_proc_oid,
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(functionId));
rel = heap_open(ProcedureRelationId, AccessShareLock);
ScanKeyInit(&skey,
- ObjectIdAttributeNumber,
+ Anum_pg_proc_oid,
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(functionId));
rel = heap_open(RelationRelationId, AccessShareLock);
ScanKeyInit(&skey,
- ObjectIdAttributeNumber,
+ Anum_pg_class_oid,
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(relOid));
rel = heap_open(RelationRelationId, AccessShareLock);
ScanKeyInit(&skey,
- ObjectIdAttributeNumber,
+ Anum_pg_class_oid,
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(relOid));
rel = heap_open(NamespaceRelationId, AccessShareLock);
ScanKeyInit(&skey,
- ObjectIdAttributeNumber,
+ Anum_pg_namespace_oid,
BTEqualStrategyNumber, F_OIDEQ,
ObjectIdGetDatum(namespaceId));