On Saturday, November 2, 2024, PG Doc comments form <nore...@postgresql.org>
wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/17/sql-insert.html
> Description:
>
> Is my suspicion valid?
>

The presence of the returning clause and subsequent usage of the CTE name
in the select/insert ensures that the update executes first.

David J.

Reply via email to