| From: | Robert Haas <rhaas(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Rearrange "add column" logic to merge columns at exec time. |
| Date: | 2011-04-04 01:53:45 |
| Message-ID: | E1Q6YzB-0002GY-Nw@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/6c5723998594dffa5d47c3cf8c96ccf89c033aae
Modified Files
--------------
src/backend/commands/tablecmds.c | 161 ++++++++++++++++-------------
src/include/nodes/parsenodes.h | 2 +
src/test/regress/expected/alter_table.out | 17 +++
src/test/regress/sql/alter_table.sql | 12 ++
4 files changed, 119 insertions(+), 73 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Shigeru HANADA | 2011-04-04 10:49:09 | Re: Re: [COMMITTERS] pgsql: Support comments on FOREIGN DATA WRAPPER and SERVER objects. |
| Previous Message | Robert Haas | 2011-04-03 23:57:27 | pgsql: Improve documentation on the range of the numeric data type. |