mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Make node output prefix match node structure name
In most cases, the prefix string in a node output is the upper case of the node structure name, e.g., MergeAppend -> MERGEAPPEND. There were a few exceptions that for either no apparent reason or perhaps minor aesthetic reasons deviated from this. In order to simplify this and perhaps allow automatic generation without having to deal with exception cases, make them all match. Discussion: https://www.postgresql.org/message-id/c091e5cd-45f8-69ee-6a9b-de86912cc7e7@enterprisedb.com
This commit is contained in:
@ -2795,23 +2795,23 @@ parseNodeString(void)
|
||||
return_value = _readArrayCoerceExpr();
|
||||
else if (MATCH("CONVERTROWTYPEEXPR", 18))
|
||||
return_value = _readConvertRowtypeExpr();
|
||||
else if (MATCH("COLLATE", 7))
|
||||
else if (MATCH("COLLATEEXPR", 11))
|
||||
return_value = _readCollateExpr();
|
||||
else if (MATCH("CASE", 4))
|
||||
else if (MATCH("CASEEXPR", 8))
|
||||
return_value = _readCaseExpr();
|
||||
else if (MATCH("WHEN", 4))
|
||||
else if (MATCH("CASEWHEN", 8))
|
||||
return_value = _readCaseWhen();
|
||||
else if (MATCH("CASETESTEXPR", 12))
|
||||
return_value = _readCaseTestExpr();
|
||||
else if (MATCH("ARRAY", 5))
|
||||
else if (MATCH("ARRAYEXPR", 9))
|
||||
return_value = _readArrayExpr();
|
||||
else if (MATCH("ROW", 3))
|
||||
else if (MATCH("ROWEXPR", 7))
|
||||
return_value = _readRowExpr();
|
||||
else if (MATCH("ROWCOMPARE", 10))
|
||||
else if (MATCH("ROWCOMPAREEXPR", 14))
|
||||
return_value = _readRowCompareExpr();
|
||||
else if (MATCH("COALESCE", 8))
|
||||
else if (MATCH("COALESCEEXPR", 12))
|
||||
return_value = _readCoalesceExpr();
|
||||
else if (MATCH("MINMAX", 6))
|
||||
else if (MATCH("MINMAXEXPR", 10))
|
||||
return_value = _readMinMaxExpr();
|
||||
else if (MATCH("SQLVALUEFUNCTION", 16))
|
||||
return_value = _readSQLValueFunction();
|
||||
@ -2845,17 +2845,17 @@ parseNodeString(void)
|
||||
return_value = _readOnConflictExpr();
|
||||
else if (MATCH("APPENDRELINFO", 13))
|
||||
return_value = _readAppendRelInfo();
|
||||
else if (MATCH("RTE", 3))
|
||||
else if (MATCH("RANGETBLENTRY", 13))
|
||||
return_value = _readRangeTblEntry();
|
||||
else if (MATCH("RANGETBLFUNCTION", 16))
|
||||
return_value = _readRangeTblFunction();
|
||||
else if (MATCH("TABLESAMPLECLAUSE", 17))
|
||||
return_value = _readTableSampleClause();
|
||||
else if (MATCH("NOTIFY", 6))
|
||||
else if (MATCH("NOTIFYSTMT", 10))
|
||||
return_value = _readNotifyStmt();
|
||||
else if (MATCH("DEFELEM", 7))
|
||||
return_value = _readDefElem();
|
||||
else if (MATCH("DECLARECURSOR", 13))
|
||||
else if (MATCH("DECLARECURSORSTMT", 17))
|
||||
return_value = _readDeclareCursorStmt();
|
||||
else if (MATCH("PLANNEDSTMT", 11))
|
||||
return_value = _readPlannedStmt();
|
||||
|
Reference in New Issue
Block a user