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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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