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

Function processQueryResult

src/fe_utils/parallel_slot.c:40–52  ·  view source on GitHub ↗

* Process (and delete) a query result. Returns true if there's no problem, * false otherwise. It's up to the handler to decide what constitutes a * problem. */

Source from the content-addressed store, hash-verified

38 * problem.
39 */
40static bool
41processQueryResult(ParallelSlot *slot, PGresult *result)
42{
43 Assert(slot->handler != NULL);
44
45 /* On failure, the handler should return NULL after freeing the result */
46 if (!slot->handler(result, slot->connection, slot->handler_context))
47 return false;
48
49 /* Ok, we have to free it ourself */
50 PQclear(result);
51 return true;
52}
53
54/*
55 * Consume all the results generated for the given connection until

Callers 2

consumeQueryResultFunction · 0.85
wait_on_slotsFunction · 0.85

Calls 1

PQclearFunction · 0.85

Tested by

no test coverage detected