Order of Operations for Update Command

From: simonwhite(at)dciphercomputing(dot)com
To: pgsql-docs(at)postgresql(dot)org
Subject: Order of Operations for Update Command
Date: 2016-08-25 15:27:26
Message-ID: 20160825152726.15674.18873@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.5/static/sql-update.html
Description:

Does the Update command update the columns in the order they are listed? Can
an updated column's new value be used in the value calculation for a
subsequent column?
i.e. update mytable set qty=qty+5,price=price*1.1,subtotal=qty*price
Will the subtotal be calculated based on the old column values or the new
column values?

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message jens.timmerman 2016-08-25 15:35:17 does md5 really help against sniffing?
Previous Message Bruce Momjian 2016-08-25 01:12:13 Re: Incorrect 'literal' tags