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

Function consumeQueryResult

src/fe_utils/parallel_slot.c:59–73  ·  view source on GitHub ↗

* Consume all the results generated for the given connection until * nothing remains. If at least one error is encountered, return false. * Note that this will block if the connection is busy. */

Source from the content-addressed store, hash-verified

57 * Note that this will block if the connection is busy.
58 */
59static bool
60consumeQueryResult(ParallelSlot *slot)
61{
62 bool ok = true;
63 PGresult *result;
64
65 SetCancelConn(slot->connection);
66 while ((result = PQgetResult(slot->connection)) != NULL)
67 {
68 if (!processQueryResult(slot, result))
69 ok = false;
70 }
71 ResetCancelConn();
72 return ok;
73}
74
75/*
76 * Wait until a file descriptor from the given set becomes readable.

Callers 1

Calls 4

SetCancelConnFunction · 0.85
PQgetResultFunction · 0.85
processQueryResultFunction · 0.85
ResetCancelConnFunction · 0.85

Tested by

no test coverage detected