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:14:15 |
Message-ID: | 003901cb96ea$94927150$bdb753f0$@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Damn, I really need to buy a new glasses.
Thank you for your help.
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 ?
-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, December 08, 2010 4:53 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:
> I'm trying to use RETURN QUERY in a function (see query below) in
> order to return list of issues and number of times when each issue
occurred.
It looks like your problem is you forgot a BEGIN.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-12-08 15:38:05 | Re: Usage of RETURN QUERY |
Previous Message | Tom Lane | 2010-12-08 15:13:43 | Re: PGstatspack installation problem |