From: Tom Lane <tgl@sss.pgh.pa.us>
To: acamargo@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15111: c between x and x gives bad planning
Date: Wed, 14 Mar 2018 17:53:37 -0400
Message-ID: <31902.1521064417@sss.pgh.pa.us> (raw)
In-Reply-To: <152105947123.1221.6463149785118579546@wrigleys.postgresql.org>
References: <152105947123.1221.6463149785118579546@wrigleys.postgresql.org>
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> Scenario: A table with columns a,b,c. Btree index on a,c. Gist index on b,c.
> A query with a clause a = y and c between x and x uses the gist index b,c
> instead of a,c, with very worst execution time than when c between x and z,
> even with small deltas (x,z), when the btree (a,c) is used.
This has been improved for v11, cf
https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=7d08ce286
That won't be back-patched, though --- even if we were inclined to take
the risk of doing so, the catalog changes make it impractical.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, acamargo@gmail.com
Subject: Re: BUG #15111: c between x and x gives bad planning
In-Reply-To: <31902.1521064417@sss.pgh.pa.us>
References: <152105947123.1221.6463149785118579546@wrigleys.postgresql.org> <31902.1521064417@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox