Add Boolean node - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Add Boolean node
Date
Msg-id 8c1a2e37-c68d-703c-5a83-7a6077f4f997@enterprisedb.com
Whole thread Raw
Responses Re: Add Boolean node  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Add Boolean node  (Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>)
Re: Add Boolean node  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: Add Boolean node  (Andres Freund <andres@anarazel.de>)
Re: Add Boolean node  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List 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

pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: Foreign key joins revisited
Next
From: Pavel Stehule
Date:
Subject: Re: Add Boolean node