pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Skylar Hawk <skylar.j.hawk@gmail.com>
Cc: pgsql-bugs@postgreSQL.org
Subject: Re: BUG #6020: Wrong data type returned after CAST in FROM
Date: Wed, 11 May 2011 14:27:41 -0400
Message-ID: <3339.1305138461@sss.pgh.pa.us> (raw)
In-Reply-To: <BANLkTim4q-mZKzrLuuSO3y5mOdUfWBY4VQ@mail.gmail.com>
References: <201105102236.p4AMaW5e038211@wwwmaster.postgresql.org>
	<570.1305133499@sss.pgh.pa.us>
	<BANLkTikRSTUL3APteP3jAVe2_Y=NvpPqXw@mail.gmail.com>
	<1750.1305135610@sss.pgh.pa.us>
	<BANLkTikBPJd1b=Zm9ePxqYQBSBLpEZLXog@mail.gmail.com>
	<BANLkTi==5mOZ36dxo1YwZCCORSX+qnGHcg@mail.gmail.com>
	<BANLkTim4q-mZKzrLuuSO3y5mOdUfWBY4VQ@mail.gmail.com>

Skylar Hawk <skylar.j.hawk@gmail.com> writes:
> My apologies too. Now that I look at it I wasn't accurately describing
> how I was doing things after all. In the script I do pass on the data
> I get back from that query into another function, but after looking
> again, it looks like I have the script pull the data from this query
> and then push it into another query instead of having the database do
> it. Sorry for the excess frustration it probably caused.

Well, the main point here seems to be that you've got a function
returning record, not just a scalar value which is what your initial
example suggested.  I've been able to duplicate the error and confirm
that the behavior changed in 9.0, but have not yet tracked down why.
More news as it develops ...

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <3339.1305138461@sss.pgh.pa.us>
Permalink:  ../3339.1305138461@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3339.1305138461@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, skylar.j.hawk@gmail.com
  Subject: Re: BUG #6020: Wrong data type returned after CAST in FROM
  In-Reply-To: <3339.1305138461@sss.pgh.pa.us>
  References: <201105102236.p4AMaW5e038211@wwwmaster.postgresql.org> <570.1305133499@sss.pgh.pa.us> <BANLkTikRSTUL3APteP3jAVe2_Y=NvpPqXw@mail.gmail.com> <1750.1305135610@sss.pgh.pa.us> <BANLkTikBPJd1b=Zm9ePxqYQBSBLpEZLXog@mail.gmail.com> <BANLkTi==5mOZ36dxo1YwZCCORSX+qnGHcg@mail.gmail.com> <BANLkTim4q-mZKzrLuuSO3y5mOdUfWBY4VQ@mail.gmail.com> <3339.1305138461@sss.pgh.pa.us>

* 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