diff options
Diffstat (limited to 'src/interfaces/libpq/fe-protocol3.c')
-rw-r--r-- | src/interfaces/libpq/fe-protocol3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index dbc0d89a4ed..c8bfca9eb01 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -446,8 +446,8 @@ handleSyncLoss(PGconn *conn, char id, int msgLength) /* build an error result holding the error message */ pqSaveErrorResult(conn); conn->asyncStatus = PGASYNC_READY; /* drop out of GetResult wait loop */ - - pqDropConnection(conn); + /* flush input data since we're giving up on processing it */ + pqDropConnection(conn, true); conn->status = CONNECTION_BAD; /* No more connection to backend */ } |