]> granicus.if.org Git - postgresql/commitdiff
Fix omission of DiscardStmt in GetCommandLogLevel, per report from Hubert
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Oct 2008 13:48:12 +0000 (13:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Oct 2008 13:48:12 +0000 (13:48 +0000)
Depesz Lubaczewski.  In HEAD, also move a couple of other cases to make the
code ordering match up with ProcessUtility.

src/backend/tcop/utility.c

index db17519ab880158dcee6cb726da92941ae192c49..c88b8ca662ccf9df648e3469679d4c47f331585b 100644 (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;