Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpbGC-0005Ue-Dw for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Sep 2016 13:20:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpbGC-0005Ah-0F for pgsql-bugs@arkaria.postgresql.org; Thu, 29 Sep 2016 13:20:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpbGB-00056j-89 for pgsql-bugs@postgresql.org; Thu, 29 Sep 2016 13:20:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpbG8-0003Km-AW for pgsql-bugs@postgresql.org; Thu, 29 Sep 2016 13:20:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u8TDKHHA005761; Thu, 29 Sep 2016 09:20:17 -0400 From: Tom Lane To: Peter Geoghegan cc: Regina Obe , pgsql-bugs Subject: Re: BUG #14344: string_agg(DISTINCT ..) crash In-reply-to: References: <20160929035538.20224.39628@wrigleys.postgresql.org> <12479.1475122250@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Thu, 29 Sep 2016 14:15:47 +0100" Date: Thu, 29 Sep 2016 09:20:17 -0400 Message-ID: <5760.1475155217@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Geoghegan writes: > On Thu, Sep 29, 2016 at 5:10 AM, Tom Lane 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. :-( Hah ... it was too late at night for me to notice that ;-) > A fix is in the works. So you've identified the problem and the rest of us don't need to chase it anymore? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs