mirror of https://github.com/citusdata/citus.git
Log remote commands sent via MultiClientSendQuery
parent
87c6f306f1
commit
fa7fa2734b
|
@ -397,7 +397,7 @@ MultiClientSendQuery(int32 connectionId, const char *query)
|
||||||
connection = ClientConnectionArray[connectionId];
|
connection = ClientConnectionArray[connectionId];
|
||||||
Assert(connection != NULL);
|
Assert(connection != NULL);
|
||||||
|
|
||||||
querySent = PQsendQuery(connection->pgConn, query);
|
querySent = SendRemoteCommand(connection, query);
|
||||||
if (querySent == 0)
|
if (querySent == 0)
|
||||||
{
|
{
|
||||||
char *errorMessage = pchomp(PQerrorMessage(connection->pgConn));
|
char *errorMessage = pchomp(PQerrorMessage(connection->pgConn));
|
||||||
|
|
|
@ -271,12 +271,7 @@ ExecuteCommandsInParallelAndStoreResults(StringInfo *nodeNameArray, int *nodePor
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
querySent = SendRemoteCommand(connection, queryString);
|
||||||
* NB: this intentionally uses PQsendQuery rather than
|
|
||||||
* SendRemoteCommand as multiple commands are allowed.
|
|
||||||
*/
|
|
||||||
querySent = PQsendQuery(connection->pgConn, queryString);
|
|
||||||
|
|
||||||
if (querySent == 0)
|
if (querySent == 0)
|
||||||
{
|
{
|
||||||
StoreErrorMessage(connection, queryResultString);
|
StoreErrorMessage(connection, queryResultString);
|
||||||
|
|
Loading…
Reference in New Issue