pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martijn van Oosterhout <kleptog@svana.org>
To: Gurjeet Singh <singh.gurjeet@gmail.com>
Cc: 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:41 +0100
Message-ID: <20090106221340.GA25467@svana.org> (raw)
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>

On Tue, Jan 06, 2009 at 11:13:59PM +0530, Gurjeet Singh wrote:
> 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
> '')".

The problem is ofcourse that "select ''" doesn't produce a text column
in postgres. This generally works fine, except in the case of UNION
where none of the branches provide the necessary type info.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while 
> boarding. Thank you for flying nlogn airlines.

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (23+ messages)  latest in thread

Message-ID: <20090106221340.GA25467@svana.org>
Permalink:  ../20090106221340.GA25467@svana.org/
Also on:    postgresql.org/message-id/20090106221340.GA25467@svana.org

 · 

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: kleptog@svana.org, 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: <20090106221340.GA25467@svana.org>
  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> <20090106221340.GA25467@svana.org>

* 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