Re: summing tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Viorel Dragomir" <bigchief(at)vio(dot)ro>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: summing tables
Date: 2003-07-15 15:42:03
Message-ID: 22931.1058283723@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Viorel Dragomir" <bigchief(at)vio(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Viorel Dragomir 2003-07-15 15:49:40 Re: summing tables
Previous Message greg 2003-07-15 15:40:52 Re: Count dates distinct within an interval