postgresql/src/backend/utils/adt
Tom Lane 851c83fc81 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.
2011-11-14 15:15:53 -05:00
..
Makefile Support range data types. 2011-11-03 13:42:15 +02:00
acl.c Revise sinval code to remove no-longer-used tuple TID from inval messages. 2011-08-16 19:27:46 -04:00
array_userfuncs.c Fix array- and path-creating functions to ensure padding bytes are zeroes. 2011-04-27 13:58:36 -04:00
arrayfuncs.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
arrayutils.c Use array_contains_nulls instead of ARR_HASNULL on user-supplied arrays. 2011-01-09 13:09:07 -05:00
ascii.c Code review for pgstat_get_crashed_backend_activity patch. 2011-10-21 16:36:04 -04:00
bool.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
cash.c Support more locale-specific formatting options in cash_out(). 2011-10-30 15:02:58 -04:00
char.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
date.c Support range data types. 2011-11-03 13:42:15 +02:00
datetime.c Fix parsing of time string followed by yesterday/today/tomorrow. 2011-08-30 11:38:42 -04:00
datum.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
dbsize.c Rewrite pg_size_pretty() to avoid compiler bug. 2011-04-29 01:45:58 -04:00
domains.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
encode.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
enum.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
float.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
format_type.c Use a macro variable PG_PRINTF_ATTRIBUTE for the style used for checking printf type functions. 2011-04-28 10:56:14 -04:00
formatting.c Fix corner case bug in numeric to_char(). 2011-09-07 17:07:20 -04:00
genfile.c Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
geo_ops.c Fix array- and path-creating functions to ensure padding bytes are zeroes. 2011-04-27 13:58:36 -04:00
geo_selfuncs.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
inet_cidr_ntop.c When reporting the server as not responding, if the hostname was 2010-11-24 17:04:19 -05:00
inet_net_pton.c Add C comment about needed include. 2011-09-01 12:53:45 -04:00
int.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
int8.c Add overflow checks to int4 and int8 versions of generate_series(). 2011-06-17 14:28:45 -04:00
like.c Pass collations to functions in FunctionCallInfoData, not FmgrInfo. 2011-04-12 19:19:24 -04:00
like_match.c Fix ILIKE to honor collation when working in single-byte encodings. 2011-04-09 17:12:39 -04:00
lockfuncs.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
mac.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
misc.c Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
nabstime.c Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
name.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
network.c Make DatumGetInetP() unpack inet datums with a 1-byte header, and add 2011-11-08 22:39:43 +02:00
numeric.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
numutils.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
oid.c Pass collations to functions in FunctionCallInfoData, not FmgrInfo. 2011-04-12 19:19:24 -04:00
oracle_compat.c Per-column collation support 2011-02-08 23:04:18 +02:00
pg_locale.c Suppress "unused function" warning when not HAVE_LOCALE_T. 2011-09-20 17:47:21 -04:00
pg_lzcompress.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
pgstatfuncs.c Move Timestamp/Interval typedefs and basic macros into datatype/timestamp.h. 2011-09-09 13:23:41 -04:00
pseudotypes.c Support range data types. 2011-11-03 13:42:15 +02:00
quote.c Add PL/Python functions for quoting strings 2011-02-22 23:41:23 +02:00
rangetypes.c Return FALSE instead of throwing error for comparisons with empty ranges. 2011-11-14 15:15:53 -05:00
rangetypes_gist.c Fix copyright notices, other minor editing in new range-types code. 2011-11-14 13:59:34 -05:00
regexp.c Clean up the #include mess a little. 2011-09-04 01:13:16 -04:00
regproc.c Try to acquire relation locks in RangeVarGetRelid. 2011-07-08 22:19:30 -04:00
ri_triggers.c Improve and simplify CREATE EXTENSION's management of GUC variables. 2011-10-05 20:44:16 -04:00
rowtypes.c Pass collations to functions in FunctionCallInfoData, not FmgrInfo. 2011-04-12 19:19:24 -04:00
ruleutils.c Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
selfuncs.c Further improvement of make_greater_string. 2011-10-30 12:22:11 -04:00
tid.c Rearrange the implementation of index-only scans. 2011-10-11 14:21:30 -04:00
timestamp.c Use macros for time-based constants, rather than constants. 2011-03-12 09:35:56 -05:00
trigfuncs.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsginidx.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
tsgistidx.c Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
tsquery.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsquery_cleanup.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsquery_gist.c Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
tsquery_op.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsquery_rewrite.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsquery_util.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsrank.c Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00
tsvector.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsvector_op.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
tsvector_parser.c Remove unnecessary #include references, per pgrminclude script. 2011-09-01 10:04:27 -04:00
txid.c Add C comment that txid_current() assigns an XID if one is not already 2011-07-11 20:33:07 -04:00
uuid.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
varbit.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
varchar.c Add notion of a "transform function" that can simplify function calls. 2011-06-21 22:21:24 -04:00
varlena.c Fix concat_ws() to not insert a separator after leading NULL argument(s). 2011-08-29 15:20:57 -04:00
version.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
windowfuncs.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
xid.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
xml.c Remove many -Wcast-qual warnings 2011-09-11 21:54:32 +03:00