Add Boolean node
Peter Eisentraut <peter@eisentraut.org>
Add Boolean node Before, SQL-level boolean constants were represented by a string with a cast, and internal Boolean values in DDL commands were usually represented by Integer nodes. This takes the place of both of these uses, making the intent clearer and having some amount of type safety. Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/8c1a2e37-c68d-703c-5a83-7a6077f4f997@enterprisedb.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/postgres_fdw/postgres_fdw.c | modified | +16 −16 |
| src/backend/commands/define.c | modified | +2 −0 |
| src/backend/commands/functioncmds.c | modified | +7 −7 |
| src/backend/commands/sequence.c | modified | +2 −2 |
| src/backend/commands/tsearchcmds.c | modified | +9 −0 |
| src/backend/commands/user.c | modified | +14 −14 |
| src/backend/nodes/copyfuncs.c | modified | +16 −0 |
| src/backend/nodes/equalfuncs.c | modified | +11 −0 |
| src/backend/nodes/nodeFuncs.c | modified | +1 −0 |
| src/backend/nodes/outfuncs.c | modified | +8 −0 |
| src/backend/nodes/read.c | modified | +7 −2 |
| src/backend/nodes/value.c | modified | +12 −0 |
| src/backend/parser/gram.y | modified | +50 −49 |
| src/backend/parser/parse_node.c | modified | +8 −0 |
| src/backend/replication/repl_gram.y | modified | +7 −7 |
| src/include/nodes/nodes.h | modified | +1 −0 |
| src/include/nodes/parsenodes.h | modified | +1 −0 |
| src/include/nodes/value.h | modified | +8 −0 |
| src/test/isolation/expected/ri-trigger.out | modified | +30 −30 |
| src/test/regress/expected/create_function_3.out | modified | +1 −1 |
Discussion
- Add Boolean node 26 messages · 2021-12-27 → 2022-01-17