pgsql: Still more review for range-types patch. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Still more review for range-types patch.
Date
Msg-id E1RSxY6-0007Q9-2X@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/766948beddef66dd89563f465919eca6e131861c

Modified Files
--------------
src/backend/utils/adt/rangetypes.c       |  472 ++++++++++++++++++------------
src/backend/utils/adt/rangetypes_gist.c  |   45 ++--
src/include/utils/rangetypes.h           |    5 +
src/test/regress/expected/rangetypes.out |  309 ++++++++++++--------
src/test/regress/sql/rangetypes.sql      |   97 ++++---
5 files changed, 556 insertions(+), 372 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Small markup and wording improvement
Next
From: Robert Haas
Date:
Subject: pgsql: Check for INSERT privileges in SELECT INTO / CREATE TABLE AS.