Add Boolean node

Enterprise / PostgreSQL - Peter Eisentraut [eisentraut.org] - 17 January 2022 09:38 UTC

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.

941460fcf7 Add Boolean node
contrib/postgres_fdw/postgres_fdw.c | 32 ++++----
src/backend/commands/define.c | 2 +
src/backend/commands/functioncmds.c | 14 ++--
src/backend/commands/sequence.c | 4 +-
src/backend/commands/tsearchcmds.c | 9 +++
src/backend/commands/user.c | 28 +++----
src/backend/nodes/copyfuncs.c | 16 ++++
src/backend/nodes/equalfuncs.c | 11 +++
src/backend/nodes/nodeFuncs.c | 1 +
src/backend/nodes/outfuncs.c | 8 ++
src/backend/nodes/read.c | 9 ++-
src/backend/nodes/value.c | 12 +++
src/backend/parser/gram.y | 99 +++++++++++++------------
src/backend/parser/parse_node.c | 8 ++
src/backend/replication/repl_gram.y | 14 ++--
src/include/nodes/nodes.h | 1 +
src/include/nodes/parsenodes.h | 1 +
src/include/nodes/value.h | 8 ++
src/test/isolation/expected/ri-trigger.out | 60 +++++++--------
src/test/regress/expected/create_function_3.out | 2 +-
20 files changed, 211 insertions(+), 128 deletions(-)

Upstream: git.postgresql.org


  • Share