Skip site navigation (1) Skip section navigation (2)

Re: Usage of RETURN QUERY

From: "Eugene Dorofeyev" <edorofeyev(at)gmail(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Usage of RETURN QUERY
Date: 2010-12-08 15:45:25
Message-ID: 003a01cb96ee$ef1ab980$cd502c80$@gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
Yes, 'SELECT * FROM' works fine


-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us] 
Sent: Wednesday, December 08, 2010 5:38 PM
To: edorofeyev(at)gmail(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: [NOVICE] Usage of RETURN QUERY 

"Eugene Dorofeyev" <edorofeyev(at)gmail(dot)com> writes:
> But it returns data as a set of rows like

> (10354,"EXCEPTION: ...")
> (4363,"Access Violation Exception.")

> Is there a way to get columns as in a view ?

Try "SELECT * FROM func(...)" rather than just "SELECT func(...)".

			regards, tom lane


In response to

pgsql-novice by date

Next:From: Michael WoodDate: 2010-12-09 09:18:06
Subject: Re: Understanding the behaviour of hostname in psql
Previous:From: Tom LaneDate: 2010-12-08 15:38:05
Subject: Re: Usage of RETURN QUERY

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group