Still more review for range-types patch.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/rangetypes.c | modified | +287 −185 |
| src/backend/utils/adt/rangetypes_gist.c | modified | +21 −24 |
| src/include/utils/rangetypes.h | modified | +5 −0 |
| src/test/regress/expected/rangetypes.out | modified | +188 −121 |
| src/test/regress/sql/rangetypes.sql | modified | +55 −42 |