Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Resolving p...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 9 Topic 9618 of 11013
Post > Topic >>

Re: Resolving polymorphic functions with relateddatatypes

by pavel.stehule@[EMAIL PROTECTED] ("Pavel Stehule") Jul 3, 2008 at 07:42 PM

>
> What I'd be inclined to think about is making
> check_generic_type_consistency and related functions allow the
> arguments matched to ANYELEMENT to be of different actual types
> so long as select_common_type could determine a unique type to
> coerce them all to.  It'd take some refactoring (notably, because
> select_common_type wants to throw error on failure, and because
> there'd have to be a way to pass back the type that was selected
> for use later).

+1
it's same like current implementation coalesce, least, greatest
functions, thats works well. And with this change and with variatic
functions we can move these functions from parser.

Regards
Pavel Stehule



>
>                        regards, tom lane
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 9 Posts in Topic:
Resolving polymorphic functions with related datatypes
simon@[EMAIL PROTECTED]   2008-07-03 10:36:09 
Re: Resolving polymorphic functions with related datatypes
pavel.stehule@[EMAIL PROT  2008-07-03 12:22:21 
Re: Resolving polymorphic functions with related
simon@[EMAIL PROTECTED]   2008-07-03 11:51:38 
Re: Resolving polymorphic functions with related datatypes
heikki@[EMAIL PROTECTED]   2008-07-03 14:11:34 
Re: Resolving polymorphic functions with related
simon@[EMAIL PROTECTED]   2008-07-03 13:34:05 
Re: Resolving polymorphic functions with relateddatatypes
stark@[EMAIL PROTECTED]   2008-07-03 13:54:29 
Re: Resolving polymorphic functions with relateddatatypes
tgl@[EMAIL PROTECTED] (T  2008-07-03 12:01:25 
Re: Resolving polymorphic functions with relateddatatypes
simon@[EMAIL PROTECTED]   2008-07-03 14:24:06 
Re: Resolving polymorphic functions with relateddatatypes
pavel.stehule@[EMAIL PROT  2008-07-03 19:42:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 9:04:16 CST 2008.