Re: Bad Query Plans on 10.3 vs 9.6 - Mailing list pgsql-general

From Tom Lane
Subject Re: Bad Query Plans on 10.3 vs 9.6
Date
Msg-id 28562.1522337157@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bad Query Plans on 10.3 vs 9.6  (Cory Tucker <cory.tucker@gmail.com>)
Responses Re: Bad Query Plans on 10.3 vs 9.6
List pgsql-general
Cory Tucker <cory.tucker@gmail.com> writes:
> relallvisible has a value of 0 for that table on both databases.

That would result in IOS being estimated at the same cost as a regular
indexscan, I believe, or very close to that anyway.

Is the 10.3 plan parallelized at all?  It's possible that the planner
thinks a parallel seqscan is faster than a nonparallel indexscan
(AFAIR, v10 doesn't have parallel indexscan).

The other likely explanation is simply that indexscanning a partitioned
table is not considered, or not correctly costed.  I'm not very sure what
the state of that code is, but certainly all the v10 partitioning logic is
still pretty wet behind the ears.

            regards, tom lane


pgsql-general by date:

Previous
From: Ravi Krishna
Date:
Subject: Question about AWS Calculator
Next
From: Alvar Freude
Date:
Subject: Re: Question about buffers_alloc in pg_stat_bgwriter view formonitoring