Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Log ALTER SYSTEM statements as DDL
authorStephen Frost <sfrost@snowman.net>
Tue, 23 Sep 2014 00:50:17 +0000 (20:50 -0400)
committerStephen Frost <sfrost@snowman.net>
Tue, 23 Sep 2014 00:52:56 +0000 (20:52 -0400)
Per discussion in bug #11350, log ALTER SYSTEM commands at the
log_statement=ddl level, rather than at the log_statement=all level.

Pointed out by Tomonari Katsumata.

Back-patch to 9.4 where ALTER SYSTEM was introduced.

src/backend/tcop/utility.c

index d55d095585890d7326120d3c0bc66307da15007d..57d2b00bd5510728942e28bf26357609ceabbb14 100644 (file)
@@ -2726,7 +2726,7 @@ GetCommandLogLevel(Node *parsetree)
            break;
 
        case T_AlterSystemStmt:
-           lev = LOGSTMT_ALL;
+           lev = LOGSTMT_DDL;
            break;
 
        case T_VariableSetStmt: