RETURNING OLD/NEW
Access to OLD and NEW row values in RETURNING.
Versions
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · shipped · improved · moderate · 3 commits · +2.9k / -395 lines
- PostgreSQL 17 · worked-on · improved · moderate
Threads
- BUG #19929: RETURNING OLD/NEW: segfault when used only inside a hashed subplan
- [DEPARSE] EXPLAIN prints another ModifyTable's RETURNING aliases in a SubPlan
- BUG #19709: Incorrect result when comparing OLD tuple column to itself in INSERT RETURNING
- BUG #19632: RULE rewriting crashes with XX000 when RETURNING old/new references a system column
- BUG #19536: UPDATE RETURNING OLD value is stale after concurrent update when table has a BEFORE UPDATE trigger
- [PATCH v1] [BUG #19516] Skip whole-row projection shortcut for OLD/NEW returning type
- BUG #19516: Mixup of OLD/NEW with RETURNING when parenthesized
- Bug: var_is_nonnullable() gives wrong results for old/new in RETURNING
- Adding OLD/NEW support to RETURNING
- GSOC13 proposal - extend RETURNING syntax