Re: pgsql: Protect GIST logic that assumes penalty values can't be negative

From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgsql: Protect GIST logic that assumes penalty values can't be negative
Date: 2011-06-01 07:20:04
Message-ID: BANLkTi=mQGDtrb+zxcRMxmMoWeVpmRM8Gw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Wed, Jun 1, 2011 at 3:57 AM, Greg Stark <gsstark(at)mit(dot)edu> wrote:

> I guess it was obvious but that was "expect the *penalty* function to
> obey the triangle inequality"
>

Actually, penalty function for boxes is even not commutative. Fox example:
A = ((0,0)-(1,1))
B = ((0,0)-(2,2))

penalty(A,B) = 3
penalty(B,A) = 0

------
With best regards,
Alexander Korotkov.

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2011-06-01 11:10:28 Re: pgsql: Make decompilation of optimized CASE constructs more robust.
Previous Message Fujii Masao 2011-06-01 04:24:09 Re: [COMMITTERS] pgsql: Improve corner cases in pg_ctl's new wait-for-postmaster-startup

Browse pgsql-hackers by date

  From Date Subject
Next Message Albe Laurenz 2011-06-01 07:31:36 Re: [HACKERS] DOCS: SGML identifier may not exceed 44 characters
Previous Message Tatsuo Ishii 2011-06-01 07:03:29 Re: patch for new feature: Buffer Cache Hibernation