pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ondřej Bouda <obouda@email.cz>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Wrong aggregate result when sorting by a NULL value
Date: Fri, 02 Nov 2018 11:34:46 -0400
Message-ID: <32176.1541172886@sss.pgh.pa.us> (raw)
In-Reply-To: <30923.1541171251@sss.pgh.pa.us>
References: <2a505161-2727-2473-7c46-591ed108ac52@email.cz>
	<30923.1541171251@sss.pgh.pa.us>

I wrote:
> =?UTF-8?Q?Ond=c5=99ej_Bouda?= <obouda@email.cz> writes:
>> the following seems as a bug to me on Postgres 11.0:

> Yeah, somebody broke this between 10.x and 11.0. ...
> I've not looked at the code yet, but it's acting like somebody changed the
> STRICT logic from "are any of the aggregate's arguments null" to "is any
> part of the whole row (including ordering values) null".  Wrong ...

git bisect fingers this:

commit 69c3936a1499b772a749ae629fc59b2d72722332
Author: Andres Freund <andres@anarazel.de>
Date:   Tue Jan 9 13:25:38 2018 -0800

    Expression evaluation based aggregate transition invocation.

Andres, do you have time to look at this right now?

			regards, tom lane




view thread (16+ messages)  latest in thread

Message-ID: <32176.1541172886@sss.pgh.pa.us>
Permalink:  ../32176.1541172886@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32176.1541172886@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, obouda@email.cz, andres@anarazel.de
  Subject: Re: Wrong aggregate result when sorting by a NULL value
  In-Reply-To: <32176.1541172886@sss.pgh.pa.us>
  References: <2a505161-2727-2473-7c46-591ed108ac52@email.cz> <30923.1541171251@sss.pgh.pa.us> <32176.1541172886@sss.pgh.pa.us>

* 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