Add SP-GiST support for range types.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 317dd55a9cae160c8d121eaec323a6aea3259fd8
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2012-08-16T11:30:45Z
Releases: 9.3.0
Add SP-GiST support for range types.

The implementation is a quad-tree, largely copied from the quad-tree
implementation for points. The lower and upper bound of ranges are the 2d
coordinates, with some extra code to handle empty ranges.

I left out the support for adjacent operator, -|-, from the original patch.
Not because there was necessarily anything wrong with it, but it was more
complicated than the other operators, and I only have limited time for
reviewing. That will follow as a separate patch.

Alexander Korotkov, reviewed by Jeff Davis and me.

Files