Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text

From: "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>, "PGSQL General" <pgsql-general(at)postgresql(dot)org>, "PGSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
Date: 2009-01-06 13:38:21
Message-ID: 65937bea0901060538n13099005p62f05ef60ed352bd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Jan 6, 2009 at 6:31 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com> writes:
> > create cast (unknown as text) with function unknown2text( unknown ) as
> > implicit;
>
> This is a horrendously bad idea; it will bite your *ss sooner or later,
> probably sooner.
>
> regards, tom lane
>

I guessed so, but couldn't figure out exactly how! That's why I have
suggested this as a temp solution until we confirmed this with someone more
knowledgeable.

Can you please let us know how this would be problematic? And can you
suggest a better solution?

Thanks and best regards,
--
gurjeet[(dot)singh](at)EnterpriseDB(dot)com
singh(dot)gurjeet(at){ gmail | hotmail | indiatimes | yahoo }.com

EnterpriseDB http://www.enterprisedb.com

Mail sent from my BlackLaptop device

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-01-06 13:48:06 Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
Previous Message Tom Lane 2009-01-06 13:01:39 Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2009-01-06 13:43:28 Re: [PATCH] ALTER TABLE SET (compress_max_size... = )
Previous Message Tom Lane 2009-01-06 13:32:44 Some more function-default issues