Re: GiST KNN Crasher - Mailing list pgsql-hackers

From Tom Lane
Subject Re: GiST KNN Crasher
Date
Msg-id 14795.1432243440@sss.pgh.pa.us
Whole thread Raw
In response to Re: GiST KNN Crasher  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: GiST KNN Crasher  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fix misaligned access of ItemPointerData on ARM
Next
From: Andrew Dunstan
Date:
Subject: Re: jsonb concatenate operator's semantics seem questionable