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

Function FetchPortalTargetList

src/backend/tcop/pquery.c:439–447  ·  view source on GitHub ↗

* FetchPortalTargetList * Given a portal that returns tuples, extract the query targetlist. * Returns NIL if the portal doesn't have a determinable targetlist. * * Note: do not modify the result. */

Source from the content-addressed store, hash-verified

437 * Note: do not modify the result.
438 */
439List *
440FetchPortalTargetList(Portal portal)
441{
442 /* no point in looking if we determined it doesn't return tuples */
443 if (portal->strategy == PORTAL_MULTI_QUERY)
444 return NIL;
445 /* get the primary statement and find out what it returns */
446 return FetchStatementTargetList((Node *) PortalGetPrimaryStmt(portal));
447}
448
449/*
450 * FetchStatementTargetList

Callers 3

FetchStatementTargetListFunction · 0.85
printtup_startupFunction · 0.85

Calls 2

FetchStatementTargetListFunction · 0.85
PortalGetPrimaryStmtFunction · 0.85

Tested by

no test coverage detected