From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Maksym Boguk <maxim.boguk@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6278: Index scans on '>' condition on field with many NULLS
Date: Mon, 31 Oct 2011 15:39:57 -0400
Message-ID: <6645.1320089997@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoaX-qvBRM1BLPkYsLtDbw2m5OfA=T8rQkLbMSc4KayaSg@mail.gmail.com>
References: <201110310339.p9V3dtIb015254@wwwmaster.postgresql.org>
<CA+TgmoaF9uU0BGgLsje8Mz0AdgJ1=1Znyqbq3xewvz-S0dEHYg@mail.gmail.com>
<26438.1320071858@sss.pgh.pa.us>
<28958.1320079428@sss.pgh.pa.us>
<CA+TgmoaX-qvBRM1BLPkYsLtDbw2m5OfA=T8rQkLbMSc4KayaSg@mail.gmail.com>
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Oct 31, 2011 at 12:43 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> A patch along these lines should be pretty localized. Has anyone
>> got an opinion on whether to back-patch or not? This seems like a
>> performance bug, but given the lack of prior complaints, maybe we
>> shouldn't take any risks for it.
> I think my vote would be to just fix it in master.
After researching the issue, my patch looks like the attached. This
seems to apply cleanly back to about 8.3, so I'm inclined to back-patch
that far. It's pretty simple, and I think the reason we (I) got it
wrong to begin with is just lack of thought about the NULLs case.
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, robertmhaas@gmail.com, maxim.boguk@gmail.com
Subject: Re: BUG #6278: Index scans on '>' condition on field with many NULLS
In-Reply-To: <6645.1320089997@sss.pgh.pa.us>
References: <201110310339.p9V3dtIb015254@wwwmaster.postgresql.org> <CA+TgmoaF9uU0BGgLsje8Mz0AdgJ1=1Znyqbq3xewvz-S0dEHYg@mail.gmail.com> <26438.1320071858@sss.pgh.pa.us> <28958.1320079428@sss.pgh.pa.us> <CA+TgmoaX-qvBRM1BLPkYsLtDbw2m5OfA=T8rQkLbMSc4KayaSg@mail.gmail.com> <6645.1320089997@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