The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/15/sql-merge.html Description:
On this page: https://www.postgresql.org/docs/15/sql-merge.html the first and second examples seems to be contrasted (by "this would be exactly equivalent to the following statement"), however the difference does not seem to related to the stated reason ("the MATCHED result does not change"). It seems like the difference should involve the order of WHEN clauses? Of course, it might be that I don't understand the point, in which case maybe the point could be stated more clearly?