pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mario.splivalo@mobart.hr
Cc: pgsql-sql@postgresql.org
Subject: Re: RETURNS SETOF primitive returns results in parentheses
Date: Wed, 26 Oct 2005 15:45:33 -0400
Message-ID: <10931.1130355933@sss.pgh.pa.us> (raw)
In-Reply-To: <1130355699.18653.0.camel@localhost.localdomain>
References: <1130330322.7400.45.camel@ekim>
	<5954.1130337622@sss.pgh.pa.us>
	<1130355699.18653.0.camel@localhost.localdomain>

Mario Splivalo <mario.splivalo@mobart.hr> writes:
> Wo-ha, makes perfect sense. So, I'd go by with declaring the rec as
> varchar, instead as of a record. Wich is what I should do in the first
> place.

Or just return the correct field out of it.

	RETURN NEXT returnValue.fieldname;

I think you may have to do it this way because the FOR loop wants a
record variable.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <10931.1130355933@sss.pgh.pa.us>
Permalink:  ../10931.1130355933@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10931.1130355933@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mario.splivalo@mobart.hr
  Subject: Re: RETURNS SETOF primitive returns results in parentheses
  In-Reply-To: <10931.1130355933@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