pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Ludwig Lim <lud_nowhere_man@yahoo.com>
To: PostgreSQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: plpgsql cursors : dynamic or static?
Date: Wed, 23 Oct 2002 11:21:00 -0700
Message-ID: <200210231121.00113.josh@agliodbs.com> (raw)
In-Reply-To: <20021023172118.20960.qmail@web80312.mail.yahoo.com>
References: <20021023172118.20960.qmail@web80312.mail.yahoo.com>


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




view thread (3+ messages)  latest in thread

Message-ID: <200210231121.00113.josh@agliodbs.com>
Permalink:  ../200210231121.00113.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200210231121.00113.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, lud_nowhere_man@yahoo.com
  Subject: Re: plpgsql cursors : dynamic or static?
  In-Reply-To: <200210231121.00113.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox