Re: Add more information_schema columns - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Add more information_schema columns
Date
Msg-id CA+TgmoY+Zt6q5Jj4o=yZ6P_-Sz00MOEysk=zULYtqSa8nKdoXQ@mail.gmail.com
Whole thread Raw
In response to Re: Add more information_schema columns  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Add more information_schema columns  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On Tue, Feb 6, 2018 at 2:15 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> Better to use parenthesis for (t.tgtype & 1 & 66) perhaps? You may want
> to comment that this is to filter per row-statement first, and then with
> after/before/instead of, which are what the 1 and the 66 are for.

What possible point can there be to such an expression?  It's always 0.

rhaas=# select distinct tgtype::smallint & 1 & 66 from
generate_series(-32768,32767) tgtype;
?column?
----------
        0
(1 row)

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: RelOptInfo -> Relation
Next
From: Robert Haas
Date:
Subject: Re: Add PGDLLIMPORT to enable_hashagg