Fix missing values when doing ALTER TABLE ALTER COLUMN TYPE

Andrew Dunstan <andrew@dunslane.net>

Commit: 076ffbcb5f45eeffb20940842e0f45bdcb4a32fc
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2019-01-10T21:24:57Z
Releases: 11.2
Fix missing values when doing ALTER TABLE ALTER COLUMN TYPE

This was an oversight in commit 16828d5c. If the table is going to be
rewritten, we simply clear all the missing values from all the table's
attributes, since there will no longer be any rows with the attributes
missing. Otherwise, we repackage the missing value in an array
constructed with the new type specifications.

Backpatch to release 11.

This fixes bug #15446, reported by Dmitry Molotkov

Reviewed by Dean Rasheed

Files