From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fast default trigger and expand_tuple fixes |
Date: | 2018-09-24 20:21:04 |
Message-ID: | E1g4XLs-0002XL-FZ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fast default trigger and expand_tuple fixes
Ensure that triggers get properly filled in tuples for the OLD value.
Also fix the logic of detecting missing null values. The previous logic
failed to detect a missing null column before the first missing column
with a default. Fixing this has simplified the logic a bit.
Regression tests are added to test changes. This should ensure better
coverage of expand_tuple().
Original bug reports, and some code and test scripts from Tomas Vondra
Backpatch to release 11.
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9625ab79245b5b91162ede9d1b4d8b4be823c21c
Modified Files
--------------
src/backend/access/common/heaptuple.c | 51 ++++----
src/backend/commands/trigger.c | 5 +-
src/test/regress/expected/fast_default.out | 191 ++++++++++++++++++++++++++++-
src/test/regress/sql/fast_default.sql | 114 ++++++++++++++++-
4 files changed, 328 insertions(+), 33 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2018-09-24 20:45:51 | pgsql: Make EXPLAIN output for JIT compilation more dense. |
Previous Message | Nasby, Jim | 2018-09-24 19:53:48 | Re: pgsql: Improve autovacuum logging for aggressive and anti-wraparound ru |