pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ondřej Bouda <obouda@email.cz>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Wrong aggregate result when sorting by a NULL value
Date: Fri, 2 Nov 2018 08:40:50 -0700
Message-ID: <20181102154050.6prklkv37wdqvilx@alap3.anarazel.de> (raw)
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>

Hi,

On 2018-11-02 11:34:46 -0400, Tom Lane wrote:
> 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?

Thanks for bisecting.  I'll take a look later today.

Greetings,

Andres Freund




view thread (16+ messages)  latest in thread

Message-ID: <20181102154050.6prklkv37wdqvilx@alap3.anarazel.de>
Permalink:  ../20181102154050.6prklkv37wdqvilx@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20181102154050.6prklkv37wdqvilx@alap3.anarazel.de

 · 

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

* 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