David Fetter <david@xxxxxxxxxx> writes: > What would be involved in making INSERT/UPDATE/DELETE ... RETURNING be > on the same level as other table-like things such as VALUES (...), > ..., (...)? Getting rid of their side-effects, which of course ain't happening. The problem is the surrounding query might try to execute the command multiple times ... or not at all ... and what would you like that to mean? regards, tom lane