postgresql/src/test/regress
Alvaro Herrera 1b68010518 Change bms_add_range to be a no-op for empty ranges
In commit 84940644de, bms_add_range was added with an API to fail with
an error if an empty range was specified.  This seems arbitrary and
unhelpful, so turn that case into a no-op instead.  Callers that require
further verification on the arguments or result can apply them by
themselves.

This fixes the bug that partition pruning throws an API error for a case
involving the default partition of a default partition, as in the
included test case.

Reported-by: Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com>
Diagnosed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/16590.1532622503@sss.pgh.pa.us
2018-07-30 18:44:33 -04:00
..
data
expected Change bms_add_range to be a no-op for empty ranges 2018-07-30 18:44:33 -04:00
input Allow FOR EACH ROW triggers on partitioned tables 2018-03-23 10:48:22 -03:00
output Improve psql's \d command to show whether index columns are key columns. 2018-07-19 14:53:48 -04:00
sql Change bms_add_range to be a no-op for empty ranges 2018-07-30 18:44:33 -04:00
.gitignore
GNUmakefile Put back parallel-safety guards in plpython and src/test/regress/. 2018-04-10 16:15:04 -04:00
Makefile Fix non-GNU makefiles for AIX make. 2017-11-30 00:57:22 -08:00
parallel_schedule Don't run fast_default regression test in parallel with other tests. 2018-04-20 17:27:56 -04:00
pg_regress_main.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_regress.c Fix bogus list-iteration code in pg_regress.c, affecting ecpg tests only. 2018-04-29 21:56:27 -04:00
pg_regress.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
README
regress.c Refactor geometric functions and operators 2018-07-29 02:36:29 +02:00
regressplans.sh
resultmap Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
serial_schedule Don't run fast_default regression test in parallel with other tests. 2018-04-20 17:27:56 -04:00
standby_schedule

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".