Re: [GENERAL] ERROR: failed to find conversion function from "unknown" to text - Mailing list pgsql-hackers

From Gurjeet Singh
Subject Re: [GENERAL] ERROR: failed to find conversion function from "unknown" to text
Date
Msg-id 65937bea0901060538n13099005p62f05ef60ed352bd@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] ERROR: failed to find conversion function from "unknown" to text  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [GENERAL] ERROR: failed to find conversion function from "unknown" to text  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, Jan 6, 2009 at 6:31 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Gurjeet Singh" <singh.gurjeet@gmail.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[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com

EnterpriseDB      http://www.enterprisedb.com

Mail sent from my BlackLaptop device

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Some more function-default issues
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCH] ALTER TABLE SET (compress_max_size... = )