"Brendan Jurd" <direvus(at)gmail(dot)com> writes:
> The attached patch resolves the bug reported by Kaloyan Iliev [1] on -general.
Applied as two separate patches (bug fix and inessential cleanup).
The bug turns out to date back to the original addition of support for
ALTER ... ADD COLUMN ... DEFAULT/NOT NULL in 8.0.
regards, tom lane