Re: plpgsql cursors : dynamic or static?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Ludwig Lim <lud_nowhere_man(at)yahoo(dot)com>, PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: plpgsql cursors : dynamic or static?
Date: 2002-10-23 18:21:00
Message-ID: 200210231121.00113.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2002-10-23 18:56:48 Re: plpgsql cursors : dynamic or static?
Previous Message eric soroos 2002-10-23 18:18:58 Re: Hairy question - transpose columns