Re: Determining return type of polymorphic function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Determining return type of polymorphic function
Date
Msg-id 4682.1123786271@sss.pgh.pa.us
Whole thread Raw
In response to Determining return type of polymorphic function  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Determining return type of polymorphic function
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> I was thinking of actually also storing the oid in the typelem field
> but the docs imply this does something fancy with subscripting.

Yeah, like enable it ;-).  You can't do that unless you are some kind
of array type.  typelem pointing at yourself would be particularly
bad news --- probably lead to infinite loops ...

> Would a patch to change the rules be accepted, or would it be
> considered a unnecessary backward incompatable change?

I wouldn't back-patch it, but it seems like something we could still put
in for 8.1.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Determining return type of polymorphic function
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Determining return type of polymorphic function