postgresql/src/backend/commands
Andrew Dunstan 3b174b1a35 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
2019-01-10 15:53:45 -05:00
..
aggregatecmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
alter.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
amcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
analyze.c Improve ANALYZE's handling of concurrent-update scenarios. 2019-01-03 17:00:08 -05:00
async.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
cluster.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
collationcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
comment.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
constraint.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
conversioncmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
copy.c Rename macro to RELKIND_HAS_STORAGE 2019-01-04 14:34:18 -03:00
createas.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
dbcommands.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
define.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
discard.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
dropcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
event_trigger.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
explain.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
extension.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
foreigncmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
functioncmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
indexcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
lockcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
matview.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
opclasscmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
operatorcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
policy.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
portalcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
prepare.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
proclang.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
publicationcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
schemacmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
seclabel.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
sequence.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
statscmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
subscriptioncmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
tablecmds.c Fix missing values when doing ALTER TABLE ALTER COLUMN TYPE 2019-01-10 15:53:45 -05:00
tablespace.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
trigger.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
tsearchcmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
typecmds.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
user.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
vacuum.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
vacuumlazy.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
variable.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
view.c Update copyright for 2019 2019-01-02 12:44:25 -05:00