Waiting for PostgreSQL 18 – Add OLD/NEW support to RETURNING in DML queries.

from blog select * from depesz;, | ↗ original
On 16th of January 2025, Dean Rasheed committed patch: Add OLD/NEW support to RETURNING in DML queries. This allows the RETURNING list of INSERT/UPDATE/DELETE/MERGE queries to explicitly return old and new values by using the special aliases "old" and "new", which are automatically added to the query (if not already defined) while parsing its …...