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