From: Gurjeet Singh <singh.gurjeet@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: PGSQL General <pgsql-general@postgresql.org>
Cc: PGSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
Date: Tue, 6 Jan 2009 23:13:59 +0530
Message-ID: <65937bea0901060943w52c5473ucee1a90f36842d4c@mail.gmail.com> (raw)
In-Reply-To: <8183.1231249686@sss.pgh.pa.us>
References: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com>
<162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com>
<65937bea0901052237j50657573i8c980f9f5f4814d5@mail.gmail.com>
<162867790901052245l4e4fa9b2ydc03781b45b13276@mail.gmail.com>
<65937bea0901060104n399cdec8ye5e2b8e247e5139a@mail.gmail.com>
<7588.1231246899@sss.pgh.pa.us>
<65937bea0901060538n13099005p62f05ef60ed352bd@mail.gmail.com>
<8183.1231249686@sss.pgh.pa.us>
On Tue, Jan 6, 2009 at 7:18 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Gurjeet Singh" <singh.gurjeet@gmail.com> writes:
> >> This is a horrendously bad idea; it will bite your *ss sooner or later,
> >> probably sooner.
>
> > Can you please let us know how this would be problematic?
>
> The point is that it's going to have unknown, untested effects on the
> default coercion rules, possibly leading to silent changes in the
> behavior of queries that used to work. If you'd rather retest every one
> of your other queries than fix this one, then go ahead.
>
>
Changing the query is an option not given to us. It is being migrated from a
BigDB.
I was working on these solutions assuming that these are workarounds to a
bug. But from your mails, it seems that it is an expected behaviour; is it?
If we consider the second branch of UNION ALL of both the queries above, if
"select '' " yields a text column, then so should a "select * from (select
'')".
Its not exactly a bug, but sure is a problem that we should try to resolve.
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: singh.gurjeet@gmail.com, tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
In-Reply-To: <65937bea0901060943w52c5473ucee1a90f36842d4c@mail.gmail.com>
References: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com> <162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com> <65937bea0901052237j50657573i8c980f9f5f4814d5@mail.gmail.com> <162867790901052245l4e4fa9b2ydc03781b45b13276@mail.gmail.com> <65937bea0901060104n399cdec8ye5e2b8e247e5139a@mail.gmail.com> <7588.1231246899@sss.pgh.pa.us> <65937bea0901060538n13099005p62f05ef60ed352bd@mail.gmail.com> <8183.1231249686@sss.pgh.pa.us> <65937bea0901060943w52c5473ucee1a90f36842d4c@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox