Re: WIP: updatable cursors in plpgsql - Mailing list pgsql-patches

From Pavel Stehule
Subject Re: WIP: updatable cursors in plpgsql
Date
Msg-id 162867790706110752h4883744bg5a02bf25de8c806c@mail.gmail.com
Whole thread Raw
In response to Re: WIP: updatable cursors in plpgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: WIP: updatable cursors in plpgsql
List pgsql-patches
2007/6/11, Tom Lane <tgl@sss.pgh.pa.us>:
> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
> > this small patch allows using updatable cursors in plpgsql.
>
> Why do we need this?
>
For stored procedures. Updatable cursors are used mainly in transform
procedures, and without suppport in plpgsql, you have to write
external procedure. It similar with support scrollable cursors, which
was added into plpgsql now. It's not strong argument. With this patch
will be less diference between cursors supported by PostgreSQL and
cursors in plpgsql.

Updatable cursor are currently substituted using ctid, but updatable
cursors are more clean and readable.

PL/pgSQL can be consistent in support PostgreSQL SQL statements. It's
little bit strange, PostgreSQL offer some functionality, which cannot
be used from PL/pgSQL.

Regards
Pavel Stehule

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: updatable cursors in plpgsql
Next
From: Tom Lane
Date:
Subject: Re: WIP: updatable cursors in plpgsql