Re: patch: bytea_agg

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: patch: bytea_agg
Дата
Msg-id CAFj8pRC2mh7fUY6oAu8rObjG4i4zhDU_VkLg2JMh_vvbAxPWXw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: patch: bytea_agg  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Hello

2011/12/23 Peter Eisentraut <peter_e@gmx.net>:
> On ons, 2011-12-21 at 11:04 +0100, Pavel Stehule wrote:
>> this patch adds a bytea_agg aggregation.
>>
>> It allow fast bytea concatetation.
>
> Why not call it string_agg?  All the function names are the same between
> text and bytea (e.g., ||, substr, position, length).  It would be nice
> not to introduce arbitrary differences.

My opinion is not too strong. I don't think so using string_agg is
good name (for bytea_agg) - as minimal (and only one) reason is
different API - there is no support for delimiter. If I remember well
discussion about string_agg, where delimiter is not optimal, there is
request for immutable interface for aggregates - there was a issue
with ORDER clause. So bytea_agg is good name.

Regards

Pavel

>


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: patch: bytea_agg
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: patch: bytea_agg