Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name

From: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
To: Golden Liu <goldenliu(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: UPDATE/DELETE XXX WHERE CURRENT OF cursor_name
Date: 2006-07-24 09:10:53
Message-ID: Pine.LNX.4.58.0607241909400.25562@linuxworld.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 24 Jul 2006, Golden Liu wrote:

> Updateable cursors are used as follows:
>
> begin;
> declare foo cursor for select * from bar for update;
> fetch foo;
> update bar set abc='def' where current of foo;
> fetch foo;
> delete from bar where current of foo;
> commit;
>
>
> PostgreSQL doesn't support this feature now ( 8.1.4). Will PGSQL
> support it recently? Does anyone work on this?
>

No one has stepped up to do this for 8.2 so unfortunately you will most
likely not see this within the next year or so :-(.

Thanks,

Gavin

PS: sorry for not responding to your private email in time.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joerg Hessdoerfer 2006-07-24 09:11:58 Re: Transaction Speed and real time database
Previous Message Stefan Kaltenbrunner 2006-07-24 08:39:29 Re: Adding a pgbench run to buildfarm