Lists: | pgsql-hackers |
---|
From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | processing of unknown datatype |
Date: | 2004-01-06 23:14:04 |
Message-ID: | 1073430844.1946.166.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
How does the unknown data type get processed, there doesn't seem to be
any casts for it?
I have a function expecting a timestamp, cstring, cstring
if I pass it a timestamp, unknown, unkown it works?
if I pass it an unknown, unknown, unkown, it can't be found?
Dave
--
Dave Cramer
519 939 0336
ICQ # 1467551
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pg(at)fastcrypt(dot)com |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: processing of unknown datatype |
Date: | 2004-01-07 00:47:25 |
Message-ID: | 14021.1073436445@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> I have a function expecting a timestamp, cstring, cstring
> if I pass it a timestamp, unknown, unkown it works?
> if I pass it an unknown, unknown, unkown, it can't be found?
You sure it's "can't find it" and not "can't choose among multiple
functions of that name"?
regards, tom lane
From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: processing of unknown datatype |
Date: | 2004-01-07 02:31:51 |
Message-ID: | 1073442711.1671.169.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
You are correct, it can't choose
Dave
On Tue, 2004-01-06 at 19:47, Tom Lane wrote:
> Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> > I have a function expecting a timestamp, cstring, cstring
> > if I pass it a timestamp, unknown, unkown it works?
> > if I pass it an unknown, unknown, unkown, it can't be found?
>
> You sure it's "can't find it" and not "can't choose among multiple
> functions of that name"?
>
> regards, tom lane
>
--
Dave Cramer
519 939 0336
ICQ # 1467551
From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: processing of unknown datatype |
Date: | 2004-01-07 03:46:10 |
Message-ID: | 1073447170.1671.175.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
So how can I create a function that it will choose, the option of
casting is not available to me
Dave
On Tue, 2004-01-06 at 19:47, Tom Lane wrote:
> Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> > I have a function expecting a timestamp, cstring, cstring
> > if I pass it a timestamp, unknown, unkown it works?
> > if I pass it an unknown, unknown, unkown, it can't be found?
>
> You sure it's "can't find it" and not "can't choose among multiple
> functions of that name"?
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
--
Dave Cramer
519 939 0336
ICQ # 1467551
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pg(at)fastcrypt(dot)com |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: processing of unknown datatype |
Date: | 2004-01-07 04:12:20 |
Message-ID: | 14839.1073448740@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Dave Cramer <pg(at)fastcrypt(dot)com> writes:
> So how can I create a function that it will choose, the option of
> casting is not available to me
If the inputs are all unknown, I think your only choice is to not have
more than one function of that name (and number of parameters).
Otherwise the system simply doesn't have a basis for making a choice.
regards, tom lane