aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/explain.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-04-24 20:17:59 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-04-24 20:17:59 +0000
commit701e71cf098db8e1969b2f3a04cf528b949f87d2 (patch)
treef991b1598679fd9f7ac0a9dff4228c38148f1aef /src/backend/commands/explain.c
parentdcd4075379458783e035fd0a5f6bb758ba4700a2 (diff)
downloadpostgresql-701e71cf098db8e1969b2f3a04cf528b949f87d2.tar.gz
postgresql-701e71cf098db8e1969b2f3a04cf528b949f87d2.zip
Fix ALTER TABLE ADD COLUMN ... PRIMARY KEY so that the new column is correctly
checked to see if it's been initialized to all non-nulls. The implicit NOT NULL constraint was not being checked during the ALTER (in fact, not even if there was an explicit NOT NULL too), because ATExecAddColumn neglected to set the flag needed to make the test happen. This has been broken since the capability was first added, in 8.0. Brendan Jurd, per a report from Kaloyan Iliev.
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions