Content-Length: 286749 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a2a61f633e36445d7a15baad22d4d1db102e4a7e

AF Add missing tags to GetCommandLogLevel. · postgrespro/postgres_cluster@a2a61f6 · GitHub
Skip to content

Commit a2a61f6

Browse files
committed
Add missing tags to GetCommandLogLevel.
Otherwise, log_statement = 'ddl' causes errors if those statement types are used. Michael Paquier, reviewed by Ashutosh Sharma Discussion: http://postgr.es/m/CAB7nPqStC3HkE76Q1MnHsVd1vF1Td9zXApzYadzDMyLMRkkGrw@mail.gmail.com
1 parent 29f0211 commit a2a61f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/backend/tcop/utility.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,6 +3007,10 @@ GetCommandLogLevel(Node *parsetree)
30073007
lev = LOGSTMT_DDL;
30083008
break;
30093009

3010+
case T_AlterOperatorStmt:
3011+
lev = LOGSTMT_DDL;
3012+
break;
3013+
30103014
case T_AlterTableMoveAllStmt:
30113015
case T_AlterTableStmt:
30123016
lev = LOGSTMT_DDL;
@@ -3291,6 +3295,14 @@ GetCommandLogLevel(Node *parsetree)
32913295
lev = LOGSTMT_DDL;
32923296
break;
32933297

3298+
case T_CreateStatsStmt:
3299+
lev = LOGSTMT_DDL;
3300+
break;
3301+
3302+
case T_AlterCollationStmt:
3303+
lev = LOGSTMT_DDL;
3304+
break;
3305+
32943306
/* already-planned queries */
32953307
case T_PlannedStmt:
32963308
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/a2a61f633e36445d7a15baad22d4d1db102e4a7e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy