Fix omission of DiscardStmt in GetCommandLogLevel, per report from Hubert

Depesz Lubaczewski.  In HEAD, also move a couple of other cases to make the
code ordering match up with ProcessUtility.
This commit is contained in:
Tom Lane 2008-10-10 13:48:12 +00:00
parent 603972f3e0
commit 794ccacd5f

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.289.2.1 2008/03/14 17:26:01 alvherre Exp $
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.289.2.2 2008/10/10 13:48:12 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -2368,6 +2368,10 @@ GetCommandLogLevel(Node *parsetree)
lev = LOGSTMT_ALL;
break;
case T_DiscardStmt:
lev = LOGSTMT_ALL;
break;
case T_CreateTrigStmt:
lev = LOGSTMT_DDL;
break;