Prevent segfault in expand_tuple with no missing values

Commit 16828d5c forgot to check that it had a set of missing values
before trying to retrieve a value from it.

An additional query to add coverage for this code is added to the
regression test.

Per bug report from Andreas Seltenreich.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7c44c46deb495a2f3861f402d7f2109263e3d50a

Modified Files
--------------
src/backend/access/common/heaptuple.c      |  2 +-
src/test/regress/expected/fast_default.out | 35 ++++++++++++++++++++++++++++++
src/test/regress/sql/fast_default.sql      | 14 ++++++++++++
3 files changed, 50 insertions(+), 1 deletion(-)

Reply via email to