Re: Add Boolean node

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Add Boolean node
Date: 2021-12-27 09:08:19
Message-ID: CAFj8pRBFAO=MAqrV2rH=OAVJM0gHJ-NQQt-sjmPAX5fmS=KaAw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

po 27. 12. 2021 v 10:02 odesílatel Peter Eisentraut <
peter(dot)eisentraut(at)enterprisedb(dot)com> napsal:

>
> 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.

+1

Regards

Pavel

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message wenjing zeng 2021-12-27 09:09:31 why does reindex invalidate relcache without modifying system tables
Previous Message Peter Eisentraut 2021-12-27 09:02:14 Add Boolean node