mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Replace uses of heap_open et al with the corresponding table_* function.
Author: Andres Freund Discussion: https://postgr.es/m/20190111000539.xbv7s6w7ilcvm7dp@alap3.anarazel.de
This commit is contained in:
@ -439,7 +439,7 @@ get_file_fdw_attribute_options(Oid relid)
|
||||
|
||||
List *options = NIL;
|
||||
|
||||
rel = heap_open(relid, AccessShareLock);
|
||||
rel = table_open(relid, AccessShareLock);
|
||||
tupleDesc = RelationGetDescr(rel);
|
||||
natts = tupleDesc->natts;
|
||||
|
||||
@ -481,7 +481,7 @@ get_file_fdw_attribute_options(Oid relid)
|
||||
}
|
||||
}
|
||||
|
||||
heap_close(rel, AccessShareLock);
|
||||
table_close(rel, AccessShareLock);
|
||||
|
||||
/*
|
||||
* Return DefElem only when some column(s) have force_not_null /
|
||||
@ -892,7 +892,7 @@ check_selective_binary_conversion(RelOptInfo *baserel,
|
||||
}
|
||||
|
||||
/* Convert attribute numbers to column names. */
|
||||
rel = heap_open(foreigntableid, AccessShareLock);
|
||||
rel = table_open(foreigntableid, AccessShareLock);
|
||||
tupleDesc = RelationGetDescr(rel);
|
||||
|
||||
while ((attnum = bms_first_member(attrs_used)) >= 0)
|
||||
@ -934,7 +934,7 @@ check_selective_binary_conversion(RelOptInfo *baserel,
|
||||
numattrs++;
|
||||
}
|
||||
|
||||
heap_close(rel, AccessShareLock);
|
||||
table_close(rel, AccessShareLock);
|
||||
|
||||
/* If there's a whole-row reference, fail: we need all the columns. */
|
||||
if (has_wholerow)
|
||||
|
Reference in New Issue
Block a user