Re: User-defined function with anyrange[] - Mailing list pgsql-general

From Paul A Jungwirth
Subject Re: User-defined function with anyrange[]
Date
Msg-id CA+renyXzi+ZLpFKP_f=dPSDPB6TCRAZevYG4KWdA=b5gem1nmw@mail.gmail.com
Whole thread Raw
In response to Re: User-defined function with anyrange[]  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: ddl_command_end not firing DROP events
Next
From: Michael Paquier
Date:
Subject: Re: Specifying WAL Location in Streaming Replication