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

Function PQdescribePortal

src/interfaces/libpq/fe-exec.c:2443–2451  ·  view source on GitHub ↗

* PQdescribePortal * Obtain information about a previously created portal * * This is much like PQdescribePrepared, except that no parameter info is * returned. Note that at the moment, libpq doesn't really expose portals * to the client; but this can be used with a portal created by a SQL * DECLARE CURSOR command. */

Source from the content-addressed store, hash-verified

2441 * DECLARE CURSOR command.
2442 */
2443PGresult *
2444PQdescribePortal(PGconn *conn, const char *portal)
2445{
2446 if (!PQexecStart(conn))
2447 return NULL;
2448 if (!PQsendDescribe(conn, 'P', portal))
2449 return NULL;
2450 return PQexecFinish(conn);
2451}
2452
2453/*
2454 * PQsendDescribePrepared

Callers

nothing calls this directly

Calls 3

PQexecStartFunction · 0.85
PQsendDescribeFunction · 0.85
PQexecFinishFunction · 0.85

Tested by

no test coverage detected