Re: Defining functions for arrays of any number type - Mailing list pgsql-general

From Tom Lane
Subject Re: Defining functions for arrays of any number type
Date
Msg-id 16518.1418275110@sss.pgh.pa.us
Whole thread Raw
In response to Defining functions for arrays of any number type  (Paul Jungwirth <pj@illuminatedcomputing.com>)
List pgsql-general
Paul Jungwirth <pj@illuminatedcomputing.com> writes:
> Is it legal to define a bunch of functions all called `array_to_hist`
> for the different numeric types, and have them all implemented by the
> same C function?

Sure.

(There is a regression test that objects if we try to do that with
built-in functions, but it's meant to catch accidental errors rather
than intentional overloading.  As long as the C code is prepared to
handle all the cases, you can do what you like.)

            regards, tom lane


pgsql-general by date:

Previous
From: Melvin Davidson
Date:
Subject: Re: Stored procedure workflow question
Next
From: Jacob Bunk Nielsen
Date:
Subject: Re: Next steps in debugging database storage problems?