Re: Strange runtime partition pruning behaviour with 11.4

From: Andreas Kretschmer <andreas(at)a-kretschmer(dot)de>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Strange runtime partition pruning behaviour with 11.4
Date: 2019-08-03 15:18:19
Message-ID: 84f4f721-2c1b-6a31-f10e-204af2c0e624@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2019-08-03 16:05:53 Re: Strange runtime partition pruning behaviour with 11.4
Previous Message Thomas Kellerer 2019-08-03 14:06:57 Re: Strange runtime partition pruning behaviour with 11.4