Writing your own aggregate functions

Поиск
Список
Период
Сортировка
От Bastiaan Olij
Тема Writing your own aggregate functions
Дата
Msg-id 5136BBA7.5030202@basenlily.me
обсуждение исходный текст
Ответы Re: Writing your own aggregate functions  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-novice
Hiya,

I was wondering if it is possible in Postgres to write an aggregate
function?

So say if I wanted to execute the following statement:

select Column1, sum(Column2), myFunction(Column3)
from MyTable
group by Column1

Could I implement myFunction as a stored function and how would I go
about doing so?

Cheers,

Bas


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL Query Speed Issues
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Writing your own aggregate functions