MCPcopy Create free account
hub / github.com/apache/cloudberry / expandRelation

Function expandRelation

src/backend/parser/parse_relation.c:3263–3277  ·  view source on GitHub ↗

* expandRelation -- expandRTE subroutine */

Source from the content-addressed store, hash-verified

3261 * expandRelation -- expandRTE subroutine
3262 */
3263static void
3264expandRelation(Oid relid, Alias *eref, int rtindex, int sublevels_up,
3265 int location, bool include_dropped,
3266 List **colnames, List **colvars)
3267{
3268 Relation rel;
3269
3270 /* Get the tupledesc and turn it over to expandTupleDesc */
3271 rel = relation_open(relid, AccessShareLock);
3272 expandTupleDesc(rel->rd_att, eref, rel->rd_att->natts, 0,
3273 rtindex, sublevels_up,
3274 location, include_dropped,
3275 colnames, colvars, RelationIsIVM(rel));
3276 relation_close(rel, AccessShareLock);
3277}
3278
3279/*
3280 * expandTupleDesc -- expandRTE subroutine

Callers 1

expandRTEFunction · 0.85

Calls 3

relation_openFunction · 0.85
expandTupleDescFunction · 0.85
relation_closeFunction · 0.85

Tested by

no test coverage detected