Re: Fast AT ADD COLUMN with DEFAULTs - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Fast AT ADD COLUMN with DEFAULTs
Date
Msg-id CADkLM=cq9k95=oN_pmeeU2f3Ue2eHv4_qiotEkL9aR0ke27GrQ@mail.gmail.com
Whole thread Raw
In response to Re: Fast AT ADD COLUMN with DEFAULTs  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: Fast AT ADD COLUMN with DEFAULTs
List 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 by date:

Previous
From: Jim Nasby
Date:
Subject: Re: proposal: psql \setfileref
Next
From: Corey Huinker
Date:
Subject: Re: proposal: psql \setfileref