From: | Jeevan Chalke <jeevan(dot)chalke(at)enterprisedb(dot)com> |
---|---|
To: | Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> |
Cc: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>, Atri Sharma <atri(dot)jiit(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Postgres-Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Grouping Sets: Fix unrecognized node type bug |
Date: | 2015-07-20 10:15:21 |
Message-ID: | CAM2+6=X9QWgbjJrR-dcLXh-RvvpGy=9ENhUOGHzrxhcJ2kVDSQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Sat, Jul 18, 2015 at 12:27 AM, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk
> wrote:
> >>>>> "Kyotaro" == Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
> writes:
>
> Kyotaro> Hello, this looks to be a kind of thinko. The attached patch
> Kyotaro> fixes it.
>
> No, that's still wrong. Just knowing that there is a List is not enough
> to tell whether to concat it or append it.
>
> Jeevan's original patch tries to get around this by making the RowExpr
> case wrap another List around its result (which is then removed by the
> concat), but this is the wrong approach too because it breaks nested
> RowExprs (which isn't valid syntax in the spec, because the spec allows
> only column references in GROUP BY, not arbitrary expressions, but which
> we have no reason not to support).
>
> Attached is the current version of my fix (with Jeevan's regression
> tests plus one of mine).
>
Looks good to me.
>
> --
> Andrew (irc:RhodiumToad)
>
>
--
Jeevan B Chalke
Principal Software Engineer, Product Development
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Spiros Ioannou | 2015-07-20 10:21:02 | Lots of stuck queries after upgrade to 9.4, possible race condition |
Previous Message | Alvaro Herrera | 2015-07-20 10:14:31 | Re: [HACKERS] object_classes array is broken, again |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2015-07-20 10:17:41 | pgsql: Improve BRIN documentation somewhat |
Previous Message | Alvaro Herrera | 2015-07-20 10:14:31 | Re: [HACKERS] object_classes array is broken, again |