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

Re: Usage of RETURN QUERY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: edorofeyev(at)gmail(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Usage of RETURN QUERY
Date: 2010-12-08 15:38:05
Message-ID: 15347.1291822685@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"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

Responses

pgsql-novice by date

Next:From: Eugene DorofeyevDate: 2010-12-08 15:45:25
Subject: Re: Usage of RETURN QUERY
Previous:From: Eugene DorofeyevDate: 2010-12-08 15:14:15
Subject: Re: Usage of RETURN QUERY

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