]> granicus.if.org Git - postgresql/commit
Convert ExecComputeStoredGenerated to use tuple slots
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 15 May 2019 17:37:52 +0000 (19:37 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 22 May 2019 16:41:53 +0000 (18:41 +0200)
commit66a4bad83aaa6613a45a00a488c04427f9969fb4
treeccb6a7ebbe8db2a9d8bedc27c63edb0f70db26c0
parent03de5187d50af67d154a47cf00899290dca13003
Convert ExecComputeStoredGenerated to use tuple slots

This code was still using the old style of forming a heap tuple rather
than using tuple slots.  This would be less efficient if a non-heap
access method was used.  And using tuple slots is actually quite a bit
faster when using heap as well.

Also add some test cases for generated columns with null values and
with varlena values.  This lack of coverage was discovered while
working on this patch.

Discussion: https://www.postgresql.org/message-id/flat/20190331025744.ugbsyks7czfcoksd%40alap3.anarazel.de
src/backend/executor/nodeModifyTable.c
src/test/regress/expected/generated.out
src/test/regress/sql/generated.sql