]> 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)
commitfd59b29c873915064f7af6a33c968c97e0d59166
tree10f15466d3a28a08becff6d2f03124899225b1e0
parentbf4a9562e8b93ebb69715c7dbdfc90dd6945e369
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