Re: BUG #14344: string_agg(DISTINCT ..) crash

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Regina Obe <lr(at)pcorp(dot)us>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14344: string_agg(DISTINCT ..) crash
Date: 2016-09-29 13:15:47
Message-ID: CAM3SWZQqJMHkLpg-QA02m=Y3fZ51VwpyDeL82ZbQOYAkB=YmhQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Sep 29, 2016 at 5:10 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2016-09-29 13:20:17 Re: BUG #14344: string_agg(DISTINCT ..) crash
Previous Message Tom Lane 2016-09-29 12:59:00 Re: BUG #14346: CREATE TABLE xxx (LIKE yyy INCLUDING ALL) fails