Re: User-defined function with anyrange[]

Поиск
Список
Период
Сортировка
От Paul A Jungwirth
Тема Re: User-defined function with anyrange[]
Дата
Msg-id CA+renyXzi+ZLpFKP_f=dPSDPB6TCRAZevYG4KWdA=b5gem1nmw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: User-defined function with anyrange[]  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> you can use overloading to define
> several functions of the same name, and just write out one for each
> range type you actually need this functionality for.

Thanks! I was hoping to avoid that, but it's what I wound up doing
after all, as you can see here:

https://github.com/pjungwir/range_agg

In the README I give instructions to create a new aggregate with a
custom range type, and it is actually not bad at all, since the same C
function can serve as implementation in all cases.

Thanks again,
Paul


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: ddl_command_end not firing DROP events
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Specifying WAL Location in Streaming Replication