Re: Checking cursor's state in plpgsql

Lists: pgsql-general
From: Sibtay Abbas <sibtay(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Checking cursor's state in plpgsql
Date: 2005-04-04 16:50:16
Message-ID: bd6a355105040409501c81db26@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hello all

Can we check whether a cursor is OPEN or not in plpgsql.
Like in oracle you can check a CURSOR'S state with <CURSOR_VAR>%ISOPEN

After navigating the documentation i was not able to find an
equivalent in plpgsql.

Do we have an alternative to this in plpgsql?

Thankz


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Sibtay Abbas <sibtay(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Checking cursor's state in plpgsql
Date: 2005-04-10 04:22:54
Message-ID: 200504100422.j3A4MsP27316@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Sibtay Abbas wrote:
> Hello all
>
> Can we check whether a cursor is OPEN or not in plpgsql.
> Like in oracle you can check a CURSOR'S state with <CURSOR_VAR>%ISOPEN
>
No, but we do have a TODO item:

o Allow pooled connections to list all open WITH HOLD cursors

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Sibtay Abbas <sibtay(at)gmail(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Checking cursor's state in plpgsql
Date: 2005-04-14 09:32:56
Message-ID: bd6a3551050414023259e54c10@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

thankz :-)

On 4/10/05, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> Sibtay Abbas wrote:
> > Hello all
> >
> > Can we check whether a cursor is OPEN or not in plpgsql.
> > Like in oracle you can check a CURSOR'S state with <CURSOR_VAR>%ISOPEN
> >
> No, but we do have a TODO item:
>
> o Allow pooled connections to list all open WITH HOLD cursors
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>