git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f158536) | patch
Return FALSE instead of throwing error for comparisons with empty ranges.
2011年11月14日 20:15:53 +0000 (15:15 -0500)
2011年11月14日 20:15:53 +0000 (15:15 -0500)
commit 851c83fc81917c61b063c875fc1bca489dfcc482
Return FALSE instead of throwing error for comparisons with empty ranges.

Change range_before, range_after, range_adjacent to return false rather
than throwing an error when one or both input ranges are empty.

The original definition is unnecessarily difficult to use, and also can
result in undesirable planner failures since the planner could try to
compare an empty range to something else while deriving statistical
estimates. (This was, in fact, the cause of repeatable regression test
failures on buildfarm member jaguar, as well as intermittent failures
elsewhere.)

Also tweak rangetypes regression test to not drop all the objects it
creates, so that the final state of the regression database contains
some rangetype objects for pg_dump testing.
doc/src/sgml/filelist.sgml diff | blob | blame | history
doc/src/sgml/func.sgml diff | blob | blame | history
src/backend/utils/adt/rangetypes.c diff | blob | blame | history
src/test/regress/expected/rangetypes.out diff | blob | blame | history
src/test/regress/expected/sanity_check.out diff | blob | blame | history
src/test/regress/output/misc.source diff | blob | blame | history
src/test/regress/sql/rangetypes.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /