postgresql/src/backend
Jeff Davis c954d49046 Extend ExecBuildAggTrans() to support a NULL pointer check.
Optionally push a step to check for a NULL pointer to the pergroup
state.

This will be important for disk-based hash aggregation in combination
with grouping sets. When memory limits are reached, a given tuple may
find its per-group state for some grouping sets but not others. For
the former, it advances the per-group state as normal; for the latter,
it skips evaluation and the calling code will have to spill the tuple
and reprocess it in a later batch.

Add the NULL check as a separate expression step because in some
common cases it's not needed.

Discussion: https://postgr.es/m/20200221202212.ssb2qpmdgrnx52sj%40alap3.anarazel.de
2020-03-04 17:29:18 -08:00
..
access Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
bootstrap Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
catalog Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
commands Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
executor Extend ExecBuildAggTrans() to support a NULL pointer check. 2020-03-04 17:29:18 -08:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Extend ExecBuildAggTrans() to support a NULL pointer check. 2020-03-04 17:29:18 -08:00
lib Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
libpq Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Fix commit c11cb17d. 2020-02-28 09:35:11 -08:00
optimizer Save calculated transitionSpace in Agg node. 2020-02-27 11:20:56 -08:00
parser Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
partitioning Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
po Translation updates 2019-06-17 15:30:20 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Avoid failure if autovacuum tries to access a just-dropped temp namespace. 2020-02-28 20:28:34 -05:00
regex Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replication Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
rewrite Make rewriter prevent auto-updates on views with conditional INSTEAD rules. 2020-01-14 09:52:21 +00:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Report progress of ANALYZE commands 2020-01-15 11:14:39 -03:00
storage Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
tcop Represent command completion tags as structs 2020-03-02 18:19:51 -03:00
tsearch Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
utils Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00