Re: summing tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: summing tables
Дата
Msg-id 22931.1058283723@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: summing tables  ("Viorel Dragomir" <bigchief@vio.ro>)
Список pgsql-sql
"Viorel Dragomir" <bigchief@vio.ro> writes:
> Indeed it was a mistake not to put the table_name. in where clause.
> But this doesn't resolve the problem.

> Do you know in which order the update will modify the rows?

No, and *it does not matter*.  You are forgetting that this all runs
under MVCC rules.  The sub-SELECTs will see the pre-existing versions
of the rows, whether or not the UPDATE has yet produced new versions.
        regards, tom lane


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

Предыдущее
От: greg@turnstep.com
Дата:
Сообщение: Re: Count dates distinct within an interval
Следующее
От: "Viorel Dragomir"
Дата:
Сообщение: Re: summing tables