Re: array functions - request for opinions (was Re: [PATCHES]

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: array functions - request for opinions (was Re: [PATCHES]
Дата
Msg-id 3ED23D43.4090507@joeconway.com
обсуждение исходный текст
Ответ на Re: array functions - request for opinions (was Re: [PATCHES]  (Andreas Pflug <Andreas.Pflug@web.de>)
Список pgsql-hackers
Andreas Pflug wrote:
> Joe Conway wrote:
> 
>> How can you create an aggregate using an operator as a transition 
>> function?
>>
>> =# CREATE AGGREGATE myagg
>> -# (
>> (#   BASETYPE = text,
>> (#   SFUNC = '||',
>> (#   STYPE = text,
>> (#   INITCOND = ''
>> (# );
>> ERROR:  AggregateCreate: function ||(text, text) does not exist 
> 
> 
> Use the function underlying the operator, in this case textcat.
> 

Right, but Peter's desire is to *not document* the underlying function 
(this was just an example, we're really discussing the new array 
functions array_accum and/or array_append), and my point is that it 
needs to be documented if we expect people to use it.

Joe




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

Предыдущее
От: Andreas Pflug
Дата:
Сообщение: Re: array functions - request for opinions (was Re: [PATCHES]
Следующее
От: Tom Lane
Дата:
Сообщение: Re: array functions - request for opinions (was Re: [PATCHES] array