pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Stehule <pavel.stehule@gmail.com>
To: Gurjeet Singh <singh.gurjeet@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 07:30:53 +0100
Message-ID: <162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com> (raw)
In-Reply-To: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com>
References: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com>

Hello

2009/1/6 Gurjeet Singh <singh.gurjeet@gmail.com>:
> 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
>



view thread (23+ messages)  latest in thread

Message-ID: <162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com>
Permalink:  ../162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com/
Also on:    postgresql.org/message-id/162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com

 · 

reply

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: pavel.stehule@gmail.com, singh.gurjeet@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
  In-Reply-To: <162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com>
  References: <65937bea0901052223w162a977dyeaaf888a854f7324@mail.gmail.com> <162867790901052230l25b10f08qa35f56856b9cc4c6@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