From: Andres Freund <andres@anarazel.de>
To: Andrew Gierth <andrew@tao11.riddles.org.uk>
Cc: 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 22:57:00 -0700
Message-ID: <20181103055700.etsffelwr2rhrphh@alap3.anarazel.de> (raw)
In-Reply-To: <87y3ab2ykj.fsf@news-spur.riddles.org.uk>
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>
<87y3ab2ykj.fsf@news-spur.riddles.org.uk>
Hi,
On 2018-11-02 17:34:43 +0000, Andrew Gierth wrote:
> >>>>> "Andres" == Andres Freund <andres@anarazel.de> writes:
>
> >> Andres, do you have time to look at this right now?
>
> Andres> Thanks for bisecting. I'll take a look later today.
>
> Looks like this:
>
> + scratch.d.agg_strict_input_check.nargs = numInputs;
>
> should have been pertrans->numTransInputs instead?
That looks like it's precisely the reason. I'll push something tomorrow
PST morning, crediting both you (diagnosis) and Tom (bisecting)
obviously, unless you prefer to do so yourself.
It's a bit sad that we don't have any tests that test this :/. I'll add
something for the specific case, but that'll obviously not be
exhaustive.
Greetings,
Andres Freund
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, andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us, obouda@email.cz
Subject: Re: Wrong aggregate result when sorting by a NULL value
In-Reply-To: <20181103055700.etsffelwr2rhrphh@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> <87y3ab2ykj.fsf@news-spur.riddles.org.uk> <20181103055700.etsffelwr2rhrphh@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