Re: Strange runtime partition pruning behaviour with 11.4

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Strange runtime partition pruning behaviour with 11.4
Date: 2019-08-05 07:29:33
Message-ID: 7cbc11eb-9c35-f844-ce9f-5820bf2a3a5c@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Tom Lane schrieb am 03.08.2019 um 18:05:
> Yeah, I get the same plan with or without ANALYZE, too. In this example,
> having the ANALYZE stats barely moves the rowcount estimates for
> foo_bar_baz at all, so it's not surprising that the plan doesn't change.
> (I do wonder how Thomas got a different outcome...)

I don't know why either ;)

I am using a JDBC based SQL tool to run that - I don't know if that matters.

I just tried this script with Postgres 12 beta2 and there I do not get
the initial plan with "never executed" (so the same behaviour as everybody
else seems to have).

If the reason why my initial plan is different than the "analyzed" plan
lies in the configuration, I am happy to share my postgresql.conf if
that is of any interest.

Thomas

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mariel Cherkassky 2019-08-05 20:47:44 improving windows functions performance
Previous Message MichaelDBA 2019-08-03 16:49:14 Re: Strange runtime partition pruning behaviour with 11.4