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

Function PQcancel

src/interfaces/libpq/fe-connect.c:4728–4739  ·  view source on GitHub ↗

* PQcancel: request query cancel * * Returns true if able to send the cancel request, false if not. * * On failure, an error message is stored in *errbuf, which must be of size * errbufsize (recommended size is 256 bytes). *errbuf is not changed on * success return. */

Source from the content-addressed store, hash-verified

4726 * success return.
4727 */
4728int
4729PQcancel(PGcancel *cancel, char *errbuf, int errbufsize)
4730{
4731 if (!cancel)
4732 {
4733 strlcpy(errbuf, "PQcancel() -- no cancel object supplied", errbufsize);
4734 return false;
4735 }
4736
4737 return internal_cancel(&cancel->raddr, cancel->be_pid, cancel->be_key,
4738 errbuf, errbufsize, false);
4739}
4740
4741/*
4742 * PQrequestFinish: request query finish

Callers 12

pgfdw_cancel_queryFunction · 0.85
dblink_cancel_queryFunction · 0.85
cdbconn_signalQEFunction · 0.85
disconnectDatabaseFunction · 0.85
handle_sigintFunction · 0.85
consoleHandlerFunction · 0.85
try_complete_stepFunction · 0.85
ShutdownWorkersHardFunction · 0.85
sigTermHandlerFunction · 0.85
consoleHandlerFunction · 0.85
DisconnectDatabaseFunction · 0.85
sigint_handlerFunction · 0.85

Calls 2

strlcpyFunction · 0.85
internal_cancelFunction · 0.85

Tested by 1

try_complete_stepFunction · 0.68