Still more review for range-types patch.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Nov 2011 21:05:49 +0000 (16:05 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Nov 2011 21:06:26 +0000 (16:06 -0500)
commit766948beddef66dd89563f465919eca6e131861c
treefdc3c92fab62f0ce28abf6af7f4d8705381aa5fc
parent024ea25ccd553aa0ecb41d626a1016470e25a9a0
Still more review for range-types patch.

Per discussion, relax the range input/construction rules so that the
only hard error is lower bound > upper bound.  Cases where the lower
bound is <= upper bound, but the range nonetheless normalizes to empty,
are now permitted.

Fix core dump in range_adjacent when bounds are infinite.  Marginal
cleanup of regression test cases, some more code commenting.
src/backend/utils/adt/rangetypes.c
src/backend/utils/adt/rangetypes_gist.c
src/include/utils/rangetypes.h
src/test/regress/expected/rangetypes.out
src/test/regress/sql/rangetypes.sql