Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2011-11-23 22:13:02 +0000
committerTom Lane2011-11-23 22:13:02 +0000
commitb7056b832444696c931d59af057b0a345f5ae178 (patch)
tree9f18a5e293fee7cf6fa54fb4080eebca278d6cc0 /contrib/btree_gist/sql
parenta912a2784be5d144aab89e447dfe8ca74b6ad079 (diff)
Adjust range_adjacent to support different canonicalization rules.
The original coding would not work for discrete ranges in which the canonicalization rule is to produce symmetric boundaries (either [] or () style), as noted by Jeff Davis. Florian Pflug pointed out that we could fix that by invoking the canonicalization function to see if the range "between" the two given ranges normalizes to empty. This implementation of Florian's idea is a tad slower than the original code, but only in the case where there actually is a canonicalization function --- if not, it's essentially the same logic as before.
Diffstat (limited to 'contrib/btree_gist/sql')
0 files changed, 0 insertions, 0 deletions