Re: Cursors for update.., we have to port an informix 9.x appication using cursors for update

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Cursors for update.., we have to port an informix 9.x appication using cursors for update
Дата
Msg-id c2d9e70e0512201411r1a298cd4y8e3b5f522a66f65e@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Cursors for update.., we have to port an informix 9.x appication using cursors for update  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
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 ;)


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Cursors for update.., we have to port an informix 9.x appication using cursors for update
Следующее
От: Francis Reed
Дата:
Сообщение: Libpq++ interface for postgres 8.1