Order of execution - Mailing list pgsql-sql

From JORGE MALDONADO
Subject Order of execution
Date
Msg-id CAAY=A7_O9hitn_zE78AVgKOKPU8YGY2XwETdwLKdBiMz0fO=xQ@mail.gmail.com
Whole thread Raw
List pgsql-sql
I have an UPDATE query which performs several opertions in one table.

UPDATE table01 SET
field1 = (query1 may contain any field),
field2 = (query1 may contain any field),
field3 = (query1 may contain any field)
WHERE (condition)

query1, query2 and query3 perform a logic to determine which records will be updated. Does field1 updates first, then  field2 and, lastly, field3? or What is the order in which updates are executed? If I need fields to be updated in a certain order, should I use 3 UPDATE commands instead?

Respectfully,
Jorge Maldonado

pgsql-sql by date:

Previous
From: Anton Gavazuk
Date:
Subject: Re: Correct implementation of 1:n relationship with n>0?
Next
From: Jasen Betts
Date:
Subject: Re: Order of execution