Re: Fast AT ADD COLUMN with DEFAULTs

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: Fast AT ADD COLUMN with DEFAULTs
Дата
Msg-id CADkLM=cq9k95=oN_pmeeU2f3Ue2eHv4_qiotEkL9aR0ke27GrQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Fast AT ADD COLUMN with DEFAULTs  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: Fast AT ADD COLUMN with DEFAULTs  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers

There's actually another use case here that's potentially extremely valuable for warehousing and other "big data": compact representation of a default value.


I too would benefit from tables having either a default value in the event of a NOT-NULL column being flagged null, or a flat-out constant.

This would be a big win in partitioned tables where the partition can only hold one value of the partitioning column.

I guess a constant would be a pg_type where the sole value is encoded, and the column itself is stored like an empty string.

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: proposal: psql \setfileref
Следующее
От: Corey Huinker
Дата:
Сообщение: Re: proposal: psql \setfileref