diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 69063a6f78..fe8e049c4c 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1812,6 +1812,8 @@ ExecQueryAndProcessResults(const char *query, if (cancel_pressed) { + /* drop this next result, as well as any others not yet read */ + ClearOrSaveResult(result); ClearOrSaveAllResults(); break; }