Re: Remove lossy-operator RECHECK flag?

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Teodor Sigaev <teodor(at)sigaev(dot)ru>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Remove lossy-operator RECHECK flag?
Date: 2008-04-14 18:50:36
Message-ID: 4803A77C.90506@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
>>> By the argument that it's better to break things obviously than to
>>> break them subtly, risking case 4 seems more attractive than risking
>>> case 2.
>
>> The single thought is: usually, it's very hard to see that query returns more
>> results that it should be. It doesn't matter for fulltext search (and it has
>> very good chance to stay unnoticed forever because wrong rows will be sorted
>> down by ranking function, although performance will decrease.
>
> Hmm ... that's a good point. And the performance loss that I'm
> complaining about is probably not large, unless you've got a *really*
> expensive operator. Maybe we should leave it as-is.
>
> Anybody else have an opinion?

Better slow than wrong in this case.

The "better to break obviously than subtly" argument doesn't hold here,
because "slow" isn't the same as broken, and returning extra incorrect
rows isn't "obviously" :-).

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brendan Jurd 2008-04-14 18:51:07 Re: Lessons from commit fest
Previous Message Tom Lane 2008-04-14 18:28:51 Re: Remove lossy-operator RECHECK flag?