Re: plpgsql cursors : dynamic or static? - Mailing list pgsql-sql

From Josh Berkus
Subject Re: plpgsql cursors : dynamic or static?
Date
Msg-id 200210231121.00113.josh@agliodbs.com
Whole thread Raw
In response to plpgsql cursors : dynamic or static?  (Ludwig Lim <lud_nowhere_man@yahoo.com>)
Responses Re: plpgsql cursors : dynamic or static?
List pgsql-sql
Ludwig,

>   Are cursors in plpgsql dynamic or static?
>
>   For example :
>
>   ... /* some code */
>   FOR rec in   SELECT f1,f2
>                FROM table1 WHERE .... LOOP
>
>     /* some codes that manipulate table1 */
>   END LOOP;

Technically speaking, that is not a cursor, even though it serves the same
purpose.

I'm pretty sure it's static, but it would be easy to test ... why don't you
give it a try?

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From: eric soroos
Date:
Subject: Re: Hairy question - transpose columns
Next
From: Tom Lane
Date:
Subject: Re: plpgsql cursors : dynamic or static?