Thread: pgsql: Improve node type forward reference

pgsql: Improve node type forward reference

From
Peter Eisentraut
Date:
Improve node type forward reference

Instead of using Node *, we can use an incomplete struct.  That way,
everything has the correct type and fewer casts are required.  This
technique is already used elsewhere in node type definitions.

Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Tender Wang <tndrwang@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/637eeea8-5663-460b-a114-39572c0f6c6e%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eafda78fc404c706da4cfa254dafb3e97f6cd111

Modified Files
--------------
src/backend/commands/createas.c | 2 +-
src/backend/parser/analyze.c    | 2 +-
src/include/nodes/primnodes.h   | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)