Re: Adding Column on Huge Table

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Adding Column on Huge Table
Date: 2019-03-19 21:06:12
Message-ID: b1cfe8ba-7365-de0d-ba4f-4ca1daeb62f4@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Alex Balashov schrieb am 19.03.2019 um 21:52:
> My experience is that adding a column is a rather quick operation even
> on quite large tables, _unless_ the column has a default value, in which
> case that default value is set for every row. In that case, the time
> required for the operation converges with that of a mass-UPDATE.

Which has changed with Postgres 11, where adding a default value does not update all rows in the table.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Shreeyansh Dba 2019-03-20 02:00:11 Re: Adding Column on Huge Table
Previous Message Andrzej Zawadzki 2019-03-19 20:53:16 Re: Adding Column on Huge Table