From: Jaime Casanova <systemguards@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: jmadm@montevideo.com.uy
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Cursors for update.., we have to port an informix 9.x appication using cursors for update
Date: Tue, 20 Dec 2005 17:11:42 -0500
Message-ID: <c2d9e70e0512201411r1a298cd4y8e3b5f522a66f65e@mail.gmail.com> (raw)
In-Reply-To: <6567.1135115219@sss.pgh.pa.us>
References: <43A85FA9.3060607@montevideo.com.uy>
<6567.1135115219@sss.pgh.pa.us>
On 12/20/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> jmadm <jmadm@montevideo.com.uy> writes:
> > We have to port an application from Informix 9 CSQL to Postgres 8.1
> > using Ecpg.
>
> > Informix application uses cursors for update to lock all the rows
> > involved in those cursor. Then an update my occur ussing Current of.
>
> > How we can do this with postgres?
>
> You can use SELECT FOR UPDATE in the cursor,
in the cursor or instead of the cursor? IIRC, cursors are read only in postgres
--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: systemguards@gmail.com, tgl@sss.pgh.pa.us, jmadm@montevideo.com.uy
Subject: Re: Cursors for update.., we have to port an informix 9.x appication using cursors for update
In-Reply-To: <c2d9e70e0512201411r1a298cd4y8e3b5f522a66f65e@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox