]> granicus.if.org Git - postgresql/commit
Fix STRICT check for strict aggregates with NULL ORDER BY columns.
authorAndres Freund <andres@anarazel.de>
Sat, 3 Nov 2018 21:35:23 +0000 (14:35 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 3 Nov 2018 21:48:42 +0000 (14:48 -0700)
commit4c640f4f38d5d68cbe33ddfabbdc56eea8f1e173
tree46c8fad53711e6744a428c51e56844d9bc92ec1f
parent981dc2baa8e08483bfe4b20f9e5ab3cad711ba98
Fix STRICT check for strict aggregates with NULL ORDER BY columns.

I (Andres) broke this unintentionally in 69c3936a14, by checking
strictness for all input expressions computed for an aggregate, rather
than just the input for the aggregate transition function.

Reported-By: Ondřej Bouda
Bisected-By: Tom Lane
Diagnosed-By: Andrew Gierth
Discussion: https://postgr.es/m/2a505161-2727-2473-7c46-591ed108ac52@email.cz
Backpatch: 11-, like 69c3936a14
src/backend/executor/execExpr.c
src/test/regress/expected/aggregates.out
src/test/regress/sql/aggregates.sql