Re: Cursor - Mailing list pgsql-general

From Klint Gore
Subject Re: Cursor
Date
Msg-id 488FACE5.5040401@une.edu.au
Whole thread Raw
In response to Re: Cursor  (Christophe <xof@thebuild.com>)
Responses Re: Cursor
List pgsql-general
Christophe wrote:
> On Jul 29, 2008, at 2:35 PM, Tom Lane wrote:
> > No, he does need an OPEN.
>
> Really?  I thought that PG didn't use OPEN:
>
> "The PostgreSQL server does not implement an OPEN statement for
> cursors; a cursor is considered to be open when it is declared."
>
>     http://www.postgresql.org/docs/8.3/interactive/sql-declare.html
>
It's different in PL/pgSQL.

"Before a cursor can be used to retrieve rows, it must be opened. (This
is the equivalent action to the SQL command DECLARE CURSOR.)"

http://www.postgresql.org/docs/8.3/interactive/plpgsql-cursors.html


klint.

--
Klint Gore
Database Manager
Sheep CRC
A.G.B.U.
University of New England
Armidale NSW 2350

Ph: 02 6773 3789
Fax: 02 6773 3266
EMail: kgore4@une.edu.au


pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: How do I set up automatic backups?
Next
From: Christophe
Date:
Subject: Re: Cursor