Re: WITH HOLD ref cursors for plpgsql

From: Daniel Wood <dwood(at)salesforce(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: WITH HOLD ref cursors for plpgsql
Date: 2013-02-19 20:17:37
Message-ID: 5123DDE1.4080809@salesforce.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 02/19/2013 01:10 AM, Tom Lane wrote:
> Daniel Wood <dwood(at)salesforce(dot)com> writes:
>> I believe that WITH HOLD cursors was once on a TODO list for plpgsql
>> along with scrollable cursors. When scrollable cursors was implemented,
>> but not WITH HOLD, it was dropped from the TODO list.
> Huh? It's been done for years. Unless there's some specific capability
> you find to be missing?
>
> The thread you referenced is specifically about plpgsql, not cursors
> in general.
>
> regards, tom lane
So how does one create a "WITH HOLD ref cursor for plpgsql"?

The SQL grammar for "declare" allows it but I can't find it in the
plpgsql grammar for declare.

The link I previously quoted for Pavel/Robert discussions was garbled.
It is:
http://www.postgresql.org/message-id/AANLkTikjVF6bENfxv-et75g-vHnRyy0y0B+og6BprhgQ@mail.gmail.com

- Dan

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Sergey Konoplev 2013-02-20 05:03:55 Re: Return table and integer value
Previous Message Tom Lane 2013-02-19 09:10:52 Re: WITH HOLD ref cursors for plpgsql