Re: Transaction control in procedures

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Transaction control in procedures
Дата
Msg-id 065dcd78-c188-2771-a010-344711c2436d@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Transaction control in procedures  (legrand legrand <legrand_legrand@hotmail.com>)
Ответы RE: Transaction control in procedures  (legrand legrand <legrand_legrand@hotmail.com>)
Список pgsql-hackers
On 11/14/17 17:40, legrand legrand wrote:
> will that kind of statement (that is permitted with Oracle but gives errors
> ora-1555 snapshot too old) be permitted ?
> 
> begin
>  for c in (select id from tab where cond='blabla')
>  loop
>     update tab set x=1 where id=c.id;
>     commit;
>  end loop;
> end;

Hmm, that currently results in

ERROR:  cannot commit while a portal is pinned

You say this fails in Oracle too.  Are we supposed to make this work
somehow?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] Re: protocol version negotiation (Re: LibpqPGRES_COPY_BOTH - version compatibility)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fix number skipping in to_number