Add Boolean node

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add Boolean node
Date: 2021-12-27 09:02:14
Message-ID: 8c1a2e37-c68d-703c-5a83-7a6077f4f997@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


This patch adds a new node type Boolean, to go alongside the "value"
nodes Integer, Float, String, etc. This seems appropriate given that
Boolean values are a fundamental part of the system and are used a lot.

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.

Attachment Content-Type Size
v1-0001-Add-Boolean-node.patch text/plain 33.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2021-12-27 09:08:19 Re: Add Boolean node
Previous Message Joel Jacobson 2021-12-27 08:22:22 Re: Foreign key joins revisited