Re: [HACKERS] Effect of dropping a partitioned table's column over time

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: [HACKERS] Effect of dropping a partitioned table's column over time
Дата
Msg-id CA+TgmoZ1q1fcenFuCDBwHx-071VyRw+t3WCjg2pxT_Rv9DQFaw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Effect of dropping a partitioned table's column over time  (Craig Ringer <craig@2ndquadrant.com>)
Список pgsql-hackers
On Sun, Aug 6, 2017 at 11:38 PM, Craig Ringer <craig@2ndquadrant.com> wrote:
> Can we instead create the new partitions with the same dropped columns?
>
> Ensure that every partition, parent and child, has the same column-set?

We could, but that has costs of its own.  It means that those calls
are stored in the tuple as nulls, which means that there will be a
null bitmap where you wouldn't otherwise have one, and every time you
deform a tuple you'll have to worry about those columns even though
they're never used for anything.

It's not clear whether this cost is more or less than the tuple
conversion cost.  It seems ugly to me, though, either way.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: [HACKERS] Re: [COMMITTERS] pgsql: Record full paths of programs sought by"configure".
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] [COMMITTERS] pgsql: Record full paths of programs sought by "configure".