Re: question about visibilty while updating multiple rows .

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: question about visibilty while updating multiple rows .
Дата
Msg-id 7045.1049901168@sss.pgh.pa.us
обсуждение исходный текст
Ответ на question about visibilty while updating multiple rows .  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Ответы Re: question about visibilty while updating multiple rows .  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Список pgsql-sql
> If an update statement is affecting multiple rows of a table X ,
> Does a subselect (selecting from X only)  inside EXISTS part of outer query 
> able to see the changes when rows are being updated one by one by outer query?

No, because it's part of the same query.

I believe though that a user-defined function called from the update
query would see the changes made so far.  So possibly you can fix your
problem by pushing the EXISTS down into a SQL or plpgsql function.
        regards, tom lane



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

Предыдущее
От: Michal Taborsky
Дата:
Сообщение: Concatenating not working properly
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: Concatenating not working properly