Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0069F62DBEA; Tue, 6 Jan 2009 02:30:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 77995-07; Tue, 6 Jan 2009 02:30:55 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f33.google.com (mail-bw0-f33.google.com [209.85.218.33]) by mail.postgresql.org (Postfix) with ESMTP id AE98362DBE4; Tue, 6 Jan 2009 02:30:54 -0400 (AST) Received: by bwz14 with SMTP id 14so5612680bwz.19 for ; Mon, 05 Jan 2009 22:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=yfYw8j0Z+TwPctHzxj1orWG38u926YvMRvhwtyjA8pA=; b=xjgIy+xKw0aKr8Cnz7wRexjBdqHz9uMJALB5gSM/DMIhUH8Vh7vMSrS828doKtyQoy arTnqxhmgBs+Tg2m8zc5qUaKMioi1MhRqTht9BApiH6alz0YfbOZB6Wkj1vI//HfSEew 3h9W+DmilWC+gUa5SabHcJBNhyKtSvfMILBaA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=wvwE+DN/ZuyInqlJ4l1ekM8otzvv8Ru8bmV5wCkFkIGvoeKiQdwqNf89VHqHWei2gq eweRu/fhV8FCuYkpuaiGKTHAYbGp8OqTQzu92G8vYMx3pVuuV43A/Q/tUZW7KspO/5TD XDIeRsLqtMN7SgWK6NfjmYEb8A5idBbx+WsLc= Received: by 10.181.61.7 with SMTP id o7mr7413099bkk.51.1231223453102; Mon, 05 Jan 2009 22:30:53 -0800 (PST) Received: by 10.180.226.20 with HTTP; Mon, 5 Jan 2009 22:30:53 -0800 (PST) Message-ID: <162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com> Date: Tue, 6 Jan 2009 07:30:53 +0100 From: "Pavel Stehule" To: "Gurjeet Singh" Subject: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text Cc: "PGSQL General" , "PGSQL Hackers" In-Reply-To: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200901/67 X-Sequence-Number: 142152 Hello 2009/1/6 Gurjeet Singh : > Q1: select '' union all select '' > Q2: select '' union all select * from (select '' ) as s > > version: PostgreSQL 8.3.1, compiled by Visual C++ build 1400 > > Hi All, > > Q1 works just fine, but Q2 fails with: > > ERROR: failed to find conversion function from "unknown" to text > > Q2 is a generalization of a huge query we are facing, which we cannot > modify. I don't think this is a 'removed-casts' problem generally faced in > 8.3, but I may be wrong. Will adding some cast resolve this? yes postgres=# select '' union all select * from (select ''::text ) as s; ?column? ---------- (2 rows) regards Pavel Stehule > > Best regards, > -- > gurjeet[.singh]@EnterpriseDB.com > singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com > > EnterpriseDB http://www.enterprisedb.com > > Mail sent from my BlackLaptop device >