Re: BUG #14344: string_agg(DISTINCT ..) crash - Mailing list pgsql-bugs

From Peter Geoghegan
Subject Re: BUG #14344: string_agg(DISTINCT ..) crash
Date
Msg-id CAM3SWZQqJMHkLpg-QA02m=Y3fZ51VwpyDeL82ZbQOYAkB=YmhQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #14344: string_agg(DISTINCT ..) crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #14344: string_agg(DISTINCT ..) crash  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Thu, Sep 29, 2016 at 5:10 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Hm, works OK for me:
>
> regression=# SELECT string_agg(DISTINCT state, ',' ORDER BY state)
> FROM string_agg_crash_test;
>     string_agg
> -------------------
>  HI,IL,KS,MA,MA,NY
> (1 row)

Actually, it doesn't work for you, since "MA" appears twice. :-(

A fix is in the works.

--
Peter Geoghegan

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14346: CREATE TABLE xxx (LIKE yyy INCLUDING ALL) fails
Next
From: Tom Lane
Date:
Subject: Re: BUG #14344: string_agg(DISTINCT ..) crash