Re: Cursor Example Needed

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Cursor Example Needed
Date: 2013-10-28 23:13:01
Message-ID: 526EEF7D.6090601@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/28/2013 3:58 PM, Adrian Klaver wrote:
> The docs do a good job of illustrating:
>
> http://www.postgresql.org/docs/9.3/interactive/plpgsql-cursors.html

thats for cursors created within a plpgsql function.

I think what the OP wants is a top level cursor, which is a different
thing...

see
http://www.postgresql.org/docs/current/static/sql-declare.html
http://www.postgresql.org/docs/current/static/sql-fetch.html
http://www.postgresql.org/docs/current/static/sql-close.html

the fetch page shows an example of the complete usage in the context of
a database transaction.

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Haase 2013-10-28 23:17:34 json datatype and table bloat?
Previous Message Merlin Moncure 2013-10-28 23:04:45 Re: Cursor Example Needed