From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Moin Akther <moindba(at)hotmail(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Adding Column on Huge Table |
Date: | 2019-03-19 17:02:19 |
Message-ID: | 6fff7b00a759e89f6468757602ac752c8d4ffdfc.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Moin Akther wrote:
> We want to add a column on table size of 1.5TB, we have to perform this activity with minimal downtime.
>
> What are the best practises to add a column on huge table ?
>
> How much time alter statement will take to add column ?
>
> Any alternate solution other than alter statement to add column ?
>
> Will adding a new column on a huge table generate huge WAL files ?
As a quick experiment would have told you, adding a column without a DEFAULT
clause is very fast. Since v11, it is fast even if the new column has a
DEFAULT clause.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
From | Date | Subject | |
---|---|---|---|
Next Message | Alex Balashov | 2019-03-19 20:52:51 | Re: Adding Column on Huge Table |
Previous Message | Aliza Abulafia | 2019-03-19 16:04:11 | PostgreSQL high availability solutions for high rates. |