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:50:17 +0000 (20:50 -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 24aa2b3dc8985a0220aeacfb1fdb0e3153997b33..4a2a339cf2a0d1fc2314973d01514400183ec8f7 100644 (file)
@@ -2759,7 +2759,7 @@ GetCommandLogLevel(Node *parsetree)
            break;
 
        case T_AlterSystemStmt:
-           lev = LOGSTMT_ALL;
+           lev = LOGSTMT_DDL;
            break;
 
        case T_VariableSetStmt: