"Evans, Roy" <revans@emea.att.com> writes:
> I am looking for a function to do an excel like percentile function , an sql percentile_cont or percentile_disc or
something. If I have choice, I'd like to write the function in perl.
> Given the error message , can I do what I want in perl ?
Do you really need the aggregate to operate on any data type? Seems
like in practice, building it for float8 would be sufficient.
regards, tom lane