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

Browse pgsql-novice by date

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