Re: AW: ALTER TABLE DROP COLUMN

Поиск
Список
Период
Сортировка
От Don Baccus
Тема Re: AW: ALTER TABLE DROP COLUMN
Дата
Msg-id 3.0.1.32.20001013131403.017e2b98@mail.pacifier.com
обсуждение исходный текст
Ответ на AW: ALTER TABLE DROP COLUMN  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
Ответы RE: AW: ALTER TABLE DROP COLUMN
Список pgsql-hackers
At 04:23 PM 10/12/00 +0200, Zeugswetter Andreas SB wrote:

>My conclusion would be that we need both:
>1. a fast system table only solution with physical/logical column id
>2. a tool that does the cleanup (e.g. vacuum) 

Oracle provides both styles of "drop column" - the "hide the column's
data and make it logically disappear" style, and the "grind through
and delete all the data as well as make the column disappear from
view".  So there's evidence of a need for both styles.

If you choose the "hide the data" style, I don't know if you can later
recover that space.

However, despite the above I think a 2x "grind through and remove the
data" DROP COLUMN would be a welcome first addition, and would meet the
needs of a very high percentage of the current user base.  A future
option to just hide the data would most likely be welcome, too.



- Don Baccus, Portland OR <dhogaza@pacifier.com> Nature photos, on-line guides, Pacific Northwest Rare Bird Alert
Serviceand other goodies at http://donb.photo.net.
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: Optimisation deficiency: currval('seq')-->seq scan, constant-->index scan
Следующее
От: "Vadim Mikheev"
Дата:
Сообщение: WAL status & todo