diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index c2c572c42d..7ba2f73c5d 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1388,6 +1388,9 @@ command_no_begin(const char *query) return true; } + if (wordlen == 7 && pg_strncasecmp(query, "discard", 7) == 0) + return true; + return false; }