postgresql/src/test/regress
Heikki Linnakangas db80acfc9d Fix sharing Agg transition state of DISTINCT or ordered aggs.
If a query contained two aggregates that could share the transition value,
we would correctly collect the input into a tuplesort only once, but
incorrectly run the transition function over the accumulated input twice,
in finalize_aggregates(). That caused a crash, when we tried to call
tuplesort_performsort() on an already-freed NULL tuplestore.

Backport to 9.6, where sharing of transition state and this bug were
introduced.

Analysis by Tom Lane.

Discussion: https://www.postgresql.org/message-id/ac5b0b69-744c-9114-6218-8300ac920e61@iki.fi
2016-12-20 09:20:17 +02:00
..
data Improve key representation for GIN jsonb_ops, and fix existence-search bug. 2014-05-09 08:41:26 -04:00
expected Fix sharing Agg transition state of DISTINCT or ordered aggs. 2016-12-20 09:20:17 +02:00
input Check that default_tablespace affects ALTER TABLE ADD UNIQUE/PRIMARY KEY. 2016-11-24 14:13:31 -05:00
output Check that default_tablespace affects ALTER TABLE ADD UNIQUE/PRIMARY KEY. 2016-11-24 14:13:31 -05:00
sql Fix sharing Agg transition state of DISTINCT or ordered aggs. 2016-12-20 09:20:17 +02:00
.gitignore Update .gitignore for config.cache. 2014-12-18 19:56:42 +09:00
GNUmakefile Fix misplacement of submake-generated-headers prerequisites. 2016-10-01 13:35:13 -04:00
Makefile
README Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
parallel_schedule Add more tests for targetlist SRFs. 2016-09-12 17:27:47 -07:00
pg_regress.c initdb pg_basebackup: Rename --noxxx options to --no-xxx 2016-10-19 08:48:48 -04:00
pg_regress.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_regress_main.c Set log_line_prefix and application name in test drivers 2016-09-30 21:32:33 -04:00
regress.c Replace uses of SPI_modifytuple that intend to allocate in current context. 2016-11-08 15:36:44 -05:00
regressplans.sh Rename 'gmake' to 'make' in docs and recommended commands 2014-02-12 17:29:19 -05:00
resultmap
serial_schedule Add more tests for targetlist SRFs. 2016-09-12 17:27:47 -07:00
standby_schedule

README

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