DROP column: documentation unclear

Поиск
Список
Период
Сортировка
От Adrian von Bidder
Тема DROP column: documentation unclear
Дата
Msg-id 201003081709.27390@fortytwo.ch
обсуждение исходный текст
Ответы Re: DROP column: documentation unclear  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Hi,

The documentation about DROP COLUMN is a bit unclear:

| The DROP COLUMN form does not physically remove the column, but simply
| makes it invisible to SQL operations. Subsequent insert and update
| operations in the table will store a null value for the column. Thus,
| dropping a column is quick but it will not immediately reduce the on-disk
| size of your table, as the space occupied by the dropped column is not
| reclaimed. The space will be reclaimed over time as existing rows are
| updated.

"subsequent ... will store a null value" would imply that deleted columns
will still take some place, while "the space will be reclaimed ..." would
suggest that new rows (insert or updates in mvcc) don't have the deleted
column anymore - I'm not quite sure how to interpret this.  What is pg
doing?

chees
-- vbi


--
featured product: PostgreSQL - http://postgresql.org

Вложения

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Enterprise DB's windows package and upgrading windows.
Следующее
От: Sam Carleton
Дата:
Сообщение: managing tablespaces like files?