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];
|
||||
Assert(connection != NULL);
|
||||
|
||||
querySent = PQsendQuery(connection->pgConn, query);
|
||||
querySent = SendRemoteCommand(connection, query);
|
||||
if (querySent == 0)
|
||||
{
|
||||
char *errorMessage = pchomp(PQerrorMessage(connection->pgConn));
|
||||
|
|
|
@ -271,12 +271,7 @@ ExecuteCommandsInParallelAndStoreResults(StringInfo *nodeNameArray, int *nodePor
|
|||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
* NB: this intentionally uses PQsendQuery rather than
|
||||
* SendRemoteCommand as multiple commands are allowed.
|
||||
*/
|
||||
querySent = PQsendQuery(connection->pgConn, queryString);
|
||||
|
||||
querySent = SendRemoteCommand(connection, queryString);
|
||||
if (querySent == 0)
|
||||
{
|
||||
StoreErrorMessage(connection, queryResultString);
|
||||
|
|
Loading…
Reference in New Issue