Rearrange "add column" logic to merge columns at exec time.

Robert Haas <rhaas@postgresql.org>

Commit: 6c5723998594dffa5d47c3cf8c96ccf89c033aae
Author: Robert Haas <rhaas@postgresql.org>
Date: 2011-04-04T01:53:32Z
Releases: 9.1.0
Rearrange "add column" logic to merge columns at exec time.

The previous coding set attinhcount too high in some cases, resulting in
an undumpable, undroppable column.  Per bug #5856, reported by Naoya
Anzai.  See also commit 31b6fc06d83c6de3644c8f2921eb7de0eb92fac3, which
fixes a similar bug in ALTER TABLE .. ADD CONSTRAINT.

Patch by Noah Misch.

Files