Re: GiST KNN Crasher

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hlinnaka(at)iki(dot)fi
Cc: Paul Ramsey <pramsey(at)cleverelephant(dot)ca>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: GiST KNN Crasher
Date: 2015-05-21 21:24:00
Message-ID: 14795.1432243440@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
> The find_ec_member_for_expr() call in create_indexscan_plan() fails to
> find the equivalence member for the path key.
> match_clause_to_ordering_op() found the match by commuting the operator,
> but code in create_indexscan_plan() doesn't take that into account.

Right.

> I think that trying to find the equivalence member in
> create_index_scan() is too fragile.

I agree; will contemplate how to do this better.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2015-05-21 21:25:00 Re: jsonb concatenate operator's semantics seem questionable
Previous Message Tom Lane 2015-05-21 21:22:57 Re: Fix misaligned access of ItemPointerData on ARM