From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Improve node type forward reference |
Date: | 2024-10-17 06:39:35 |
Message-ID: | E1t1KAa-001CF0-Ev@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Tender Wang <tndrwang(at)gmail(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2024-10-17 06:48:23 | pgsql: Fix whitespace |
Previous Message | Peter Eisentraut | 2024-10-17 06:28:27 | pgsql: jsonapi: fully initialize dummy lexer |