| From: | Caleb Welton <cwelton(at)greenplum(dot)com> |
|---|---|
| To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Table Inheritance and dropped columns |
| Date: | 2009-01-27 21:27:24 |
| Message-ID: | C5A4BC3C.571F%cwelton@greenplum.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello,
I'm trying to figure out if this is a bug or a feature.
Two child tables, one created with inheritance, one altered to have
inheritance:
create table A(a text, b text);
create table A1() inherits (A);
create table A2(a text, b text);
alter table A2 INHERIT A;
When you drop a column from the parent table only the tables CREATED with
inheritance drop the column:
alter table A drop column b;
\d A1
Column | Type | Modifiers
--------+------+-----------
a | text |
Inherits: a
\d A2
Column | Type | Modifiers
--------+------+-----------
a | text |
b | text |
Inherits: a
Is this intended behavior? I have postgres 8.2.9.
-Caleb
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joshua Brindle | 2009-01-27 21:27:29 | Re: 8.4 release planning |
| Previous Message | Devrim GÜNDÜZ | 2009-01-27 21:26:06 | Re: 8.4 release planning |