Re: Strange runtime partition pruning behaviour with 11.4 - Mailing list pgsql-performance

From Andreas Kretschmer
Subject Re: Strange runtime partition pruning behaviour with 11.4
Date
Msg-id 84f4f721-2c1b-6a31-f10e-204af2c0e624@a-kretschmer.de
Whole thread Raw
In response to Re: Strange runtime partition pruning behaviour with 11.4  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: Strange runtime partition pruning behaviour with 11.4  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance

Am 03.08.19 um 16:06 schrieb Thomas Kellerer:
>> it's posible to rewrite the query to:
>>
>>
>> test=# explain analyse select count(*) from foo_bar_baz as fbb where 
>> foo_id = (select foo_id from foo where foo_name = 'eeny');
>>
>> I know, that's not a solution, but a workaround. :-(
>
> Yes, I discovered that as well.
>
> But I'm more confused (or concerned) by the fact that the (original) 
> query works correctly *without* statistics.
>
> Thomas
>
>

can't reproduce that :-(  (PG 11.4 Community)

(all in a file and executed the explain immediately)


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com




pgsql-performance by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Strange runtime partition pruning behaviour with 11.4
Next
From: Tom Lane
Date:
Subject: Re: Strange runtime partition pruning behaviour with 11.4