From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | David Johnston <polobo(at)yahoo(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: polymorphic SQL functions has a problem with domains |
Date: | 2014-04-02 16:30:30 |
Message-ID: | CAFj8pRB=RMfwtUcvKTPch76G3mywcb7J-wAqEuE0_yKgyzfTvA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2014-04-02 18:27 GMT+02:00 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> David Johnston <polobo(at)yahoo(dot)com> writes:
> > Does something like:
> > SELECT ($1 + $2)::$1%TYPE
> > exist where you can explicitly cast to the type of the input argument?
>
> I don't think SQL-language functions have such a notation, but it's
> possible in plpgsql, if memory serves.
>
>
No, this possibility doesn't there, what I know.
but you can do assignment to some output variable - what is effective same
Pavel
> regards, tom lane
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-04-02 16:32:30 | Re: polymorphic SQL functions has a problem with domains |
Previous Message | Tom Lane | 2014-04-02 16:27:30 | Re: polymorphic SQL functions has a problem with domains |