Re: User-defined function with anyrange[]

From: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: User-defined function with anyrange[]
Date: 2018-07-08 23:56:37
Message-ID: CA+renyXzi+ZLpFKP_f=dPSDPB6TCRAZevYG4KWdA=b5gem1nmw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2018-07-09 01:55:19 Re: Specifying WAL Location in Streaming Replication
Previous Message Alvaro Herrera 2018-07-08 18:19:29 Re: ddl_command_end not firing DROP events