Re: Different execution plan between PostgreSQL 8.4 and 12.11 - Mailing list pgsql-general

From David Rowley
Subject Re: Different execution plan between PostgreSQL 8.4 and 12.11
Date
Msg-id CAApHDvrkww0YmzOp2qXetNJyVp+LizfLpsXnqMGiWKJVLc8zqw@mail.gmail.com
Whole thread Raw
In response to Different execution plan between PostgreSQL 8.4 and 12.11  (gzh <gzhcoder@126.com>)
List pgsql-general
On Tue, 11 Oct 2022 at 22:52, Josef Šimánek <josef.simanek@gmail.com> wrote:
> This can make some queries fail since there will be no way to gather
> data without seqscan.

Disabling enable_seqscan only adds a const penalty to Seq Scans. It
does not outright disallow them altogether.

Having said that, having Paths with the disabled high cost penalty can
cause other issues like the planner thinking two Paths are "fuzzily"
similar enough in costs and rejecting better Paths when in fact the
better Path is really quite a bit better when you subtract the
disabling cost penalty.

David



pgsql-general by date:

Previous
From: Josef Šimánek
Date:
Subject: Re: Different execution plan between PostgreSQL 8.4 and 12.11
Next
From: David Rowley
Date:
Subject: Re: Re: Different execution plan between PostgreSQL 8.4 and 12.11