Re: Drop one-argument string_agg? (was Re: [BUGS] string_agg delimiter having no effect with order by)

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Drop one-argument string_agg? (was Re: [BUGS] string_agg delimiter having no effect with order by)
Дата
Msg-id AANLkTimYuDQ_Kk_HwinfVASwFdR15KJTQw=Uhr+koh+E@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Drop one-argument string_agg? (was Re: [BUGS] string_agg delimiter having no effect with order by)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Aug 4, 2010 at 7:07 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Or in other words, any thoughts on:
>> select string_agg(delim, expression);
>
> That looks pretty weird to me anyway, with or without use of ORDER BY.
> Nobody would think to write the delimiter first.  Usually you put the
> "most important" argument first, and no one would see the delimiter
> as the most important one.

Well, it would match the syntax of things like perl's join().  But I
think that's probably not enough reason to go fiddling with it.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: more numeric stuff
Следующее
От: Alex Hunsaker
Дата:
Сообщение: Re: Drop one-argument string_agg? (was Re: [BUGS] string_agg delimiter having no effect with order by)