From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vik Fearing <vik@postgresfriends.org>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Wrong result with constant quals
Date: Thu, 03 Nov 2022 20:14:28 -0400
Message-ID: <2198598.1667520868@sss.pgh.pa.us> (raw)
In-Reply-To: <309137b4-9b48-5952-c6e1-0fa7007d0419@postgresfriends.org>
References: <f895925a-f2da-5651-af71-21cd8238b9f5@postgresfriends.org>
<2193245.1667518580@sss.pgh.pa.us>
<309137b4-9b48-5952-c6e1-0fa7007d0419@postgresfriends.org>
Vik Fearing <vik@postgresfriends.org> writes:
> I allowed for this by saying it could be a single group with no rows if
> you preferred to look at it that way.
That is exactly what the standard says.
> This does not explain why the WHERE FALSE is being ignored and producing
> rows.
It's not ignored, but it applies to the pre-grouping rows, of which
there aren't any to remove. But there's still a group.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, vik@postgresfriends.org
Subject: Re: Wrong result with constant quals
In-Reply-To: <2198598.1667520868@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox