pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fast default trigger and expand_tuple fixes 2+ messages / 1 participants [nested] [flat]
* pgsql: Fast default trigger and expand_tuple fixes @ 2018-09-24 20:21 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 2+ messages in thread From: Andrew Dunstan @ 2018-09-24 20:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/7636e5c60fea83a9f3cd2ad278c0819b98941c74 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fast default trigger and expand_tuple fixes @ 2018-09-24 20:21 Andrew Dunstan <andrew@dunslane.net> 0 siblings, 0 replies; 2+ messages in thread From: Andrew Dunstan @ 2018-09-24 20:21 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-09-24 20:21 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-09-24 20:21 pgsql: Fast default trigger and expand_tuple fixes Andrew Dunstan <andrew@dunslane.net> 2018-09-24 20:21 pgsql: Fast default trigger and expand_tuple fixes Andrew Dunstan <andrew@dunslane.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox