Re: pl/pgsql problem with return types - Mailing list pgsql-sql

From John DeSoi
Subject Re: pl/pgsql problem with return types
Date
Msg-id 9ECE66EE-922B-11D9-B332-000A95B03262@pgedit.com
Whole thread Raw
In response to pl/pgsql problem with return types  (Juris Zeltins <juris.zeltins@gmail.com>)
Responses Re: pl/pgsql problem with return types  (Juris Zeltins <juris.zeltins@gmail.com>)
List pgsql-sql
On Mar 11, 2005, at 5:54 AM, Juris Zeltins wrote:

>    FOR P IN select pageid from pages
>

This way you are only getting the pageid column. I think what you want 
is

FOR P in select * from pages

so that P contains the complete pages record.


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL



pgsql-sql by date:

Previous
From: "ALÝ ÇELÝK"
Date:
Subject: more execution time
Next
From: Juris Zeltins
Date:
Subject: Re: pl/pgsql problem with return types