Re: BUG #7583: Problem using INHERITS and LIKE
От | Tom Lane |
---|---|
Тема | Re: BUG #7583: Problem using INHERITS and LIKE |
Дата | |
Msg-id | 25218.1349361515@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | BUG #7583: Problem using INHERITS and LIKE (bryan.love@iovation.com) |
Ответы |
Re: BUG #7583: Problem using INHERITS and LIKE
|
Список | pgsql-bugs |
bryan.love@iovation.com writes: > After creating a table using LIKE and INHERITS, if you drop a column from > the parent table that existed prior to creation of the child table, the > column will not be dropped from the child table. This is not a bug. LIKE says the column isn't inherited, so it exists in the child independently of whether it exists in the parent. Or, if you want to add it up: the child starts out with one local definition of the column (from LIKE) and one inherited (from INHERITS). Dropping the column from the parent removes the latter, but you still have the former, so the column stays. > =# create table bar (like foo) inherits (foo); Just out of curiosity, is there any actual use-case for such a silly thing? regards, tom lane
В списке pgsql-bugs по дате отправления: