What is the order of evaluation in the following query:
UPDATE tbl SET q = q + 1, p = q;
That is, will \"tbl\".\"p\" be set to
\"tbl\".\"p\"
The write to the table has to occur after transaction that was well under way when the read was completed.