Re: Soon-to-be-broken regression test case - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Soon-to-be-broken regression test case
Date
Msg-id 20181011163952.emtpcrzkpselhupj@alvherre.pgsql
Whole thread Raw
In response to Soon-to-be-broken regression test case  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Soon-to-be-broken regression test case  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2018-Oct-11, Tom Lane wrote:

> I have been fooling around with a patch to allow pull-up of sub-selects
> that lack any FROM, along the lines discussed in
> https://www.postgresql.org/message-id/15944.1521127664@sss.pgh.pa.us
> I find that it is smart enough to reduce that EXISTS to a plain
> expression, yielding
> 
>                      QUERY PLAN                     
> ----------------------------------------------------
>  Subquery Scan on tenk1_vw_sec
>    ->  Index Only Scan using tenk1_unique1 on tenk1
>          Index Cond: (unique1 = 0)
> (3 rows)

Hmm, I have the feeling that this would nullify some tests in
partition_prune also, which IIRC pretend to invoke runtime pruning with
things like "WHERE partcol = (select 1)".

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Soon-to-be-broken regression test case
Next
From: Tom Lane
Date:
Subject: Re: Soon-to-be-broken regression test case