KNNGIST, otherwise known as order-by-operator support for GIST.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 554506871bd3a73a5d9fa4ee3aa0b0fbf406f8ab
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-12-04T01:53:29Z
Releases: 9.1.0
KNNGIST, otherwise known as order-by-operator support for GIST.

This commit represents a rather heavily editorialized version of
Teodor's builtin_knngist_itself-0.8.2 and builtin_knngist_proc-0.8.1
patches.  I redid the opclass API to add a separate Distance method
instead of turning the Consistent method into an illogical mess,
fixed some bit-rot in the rbtree interfaces, and generally worked over
the code style and comments.

There's still no non-code documentation to speak of, but I'll work on
that separately.  Some contrib-module changes are also yet to come
(right now, point <-> point is the only KNN-ified operator).

Teodor Sigaev and Tom Lane

Files