Skip site navigation (1) Skip section navigation (2)

Re: string_agg delimiter having no effect with order by

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Thom Brown <thom(at)linux(dot)com>, pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: string_agg delimiter having no effect with order by
Date: 2010-08-04 17:04:46
Message-ID: 21728.1280941486@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-hackers
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Wed, Aug 4, 2010 at 12:44 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>>> I suppose this confusion is only possible because string_agg has both
>>> a one-argument and a two-argument form.
>> 
>> Right, or at least that's what allows the mistake to go through without
>> reporting any error.

> No, that's what lets the correct form go through without reporting any error.

Really?  IMO the reason Thom had a problem was he thought he was
invoking the two-argument form of string_agg, but he was really
invoking the one-argument form.

If we were a bit earlier in the 9.0 cycle I would suggest that this
confusion is a sufficient reason to drop the one-argument form of
string_agg.  It's too late now though.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Jan OttoDate: 2010-08-04 17:32:58
Subject: patch for contrib/isn
Previous:From: Tom LaneDate: 2010-08-04 16:55:22
Subject: Re: reducing NUMERIC size for 9.1

pgsql-bugs by date

Next:From: Tom LaneDate: 2010-08-04 17:06:27
Subject: Re: BUG #5598: Compatibility modes
Previous:From: Alex HunsakerDate: 2010-08-04 16:51:44
Subject: Re: BUG #5598: Compatibility modes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group