Improve node type forward reference
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/createas.c | modified | +1 −1 |
| src/backend/parser/analyze.c | modified | +1 −1 |
| src/include/nodes/primnodes.h | modified | +3 −3 |
Discussion
- Improve node type forward reference 6 messages · 2024-10-14 → 2024-10-17