pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix STRICT check for strict aggregates with NULL ORDER BY column
Date: Sat, 03 Nov 2018 21:49:13 +0000
Message-ID: <E1gJ3n7-0001Ef-Ru@gemulon.postgresql.org> (raw)

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fd59b29c873915064f7af6a33c968c97e0d59166

Modified Files
--------------
src/backend/executor/execExpr.c          |  2 +-
src/test/regress/expected/aggregates.out | 15 +++++++++++++++
src/test/regress/sql/aggregates.sql      |  7 +++++++
3 files changed, 23 insertions(+), 1 deletion(-)



view thread (2+ messages)

Message-ID: <E1gJ3n7-0001Ef-Ru@gemulon.postgresql.org>
Permalink:  ../E1gJ3n7-0001Ef-Ru@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gJ3n7-0001Ef-Ru@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Fix STRICT check for strict aggregates with NULL ORDER BY column
  In-Reply-To: <E1gJ3n7-0001Ef-Ru@gemulon.postgresql.org>
  References: <E1gJ3n7-0001Ef-Ru@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox