adding a nullable col could rewrite the whole table?

Поиск
Список
Период
Сортировка
От Scara Maccai
Тема adding a nullable col could rewrite the whole table?
Дата
Msg-id 850000.2913.qm@web24603.mail.ird.yahoo.com
обсуждение исходный текст
Ответы Re: adding a nullable col could rewrite the whole table?
Список pgsql-general
Hi all,

in the docs I read:

"Adding a column with a non-null default [...] will require the entire table to be rewritten"

I guess that that can't be read as "you can always assume that adding a nullable column to a table won't rewrite the
wholetable". 

I'm asking because since the page layout includes a null bitmap that
"If it is present it begins just after the fixed header and occupies enough bytes to have one bit per data column", I
guessthat when all the bits in the bitmap are used when I add a column (even a nullable one) the table gets rewritten
(toadd a new byte to the nullable bitmap); is this true? 





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

Предыдущее
От: Alex Paulo
Дата:
Сообщение: Table as parameter
Следующее
От: Scara Maccai
Дата:
Сообщение: R: Table as parameter