Adjust ts_get_node_name for PG15

PG15 removes T_Expr nodeTag because it's an abstract type.

https://github.com/postgres/postgres/commit/85399291
This commit is contained in:
Sven Klemm 2022-09-01 12:00:39 +02:00 committed by Sven Klemm
parent 39a700a4de
commit 5c8b0b52b4

View File

@ -1001,7 +1001,10 @@ ts_get_node_name(Node *node)
NODE_CASE(RangeVar);
NODE_CASE(TableFunc);
NODE_CASE(IntoClause);
#if PG15_LT
/* PG15 removed T_Expr nodetag because it's an abstract type. */
NODE_CASE(Expr);
#endif
NODE_CASE(Var);
NODE_CASE(Const);
NODE_CASE(Param);