Re: [HACKERS] knngist questions

2010-11-12 Thread Teodor Sigaev
1. Is KNNGIST intended to work if there's more than one pathkey? If so, how? Example: SELECT * FROM tab ORDER BY this_point- '(0,0)', this_point- '(1,1)' Why not, if distances from two points to '(0,0)' are equal, it's need to compare distances to '(1,1)'. Nothing new here, KNN-GiST

[HACKERS] knngist questions

2010-11-06 Thread Robert Haas
I'm gradually slogging my way through the KNNGIST patches which were posted here: http://archives.postgresql.org/pgsql-hackers/2010-07/msg01183.php I have a couple of conceptual questions. 1. Is KNNGIST intended to work if there's more than one pathkey? If so, how? Example: SELECT * FROM tab