Re: Upgrade questions

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Upgrade questions
Date: 2012-03-14 01:32:03
Message-ID: 4F5FF513.1070702@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/13/12 6:10 PM, Carson Gross wrote:
> As a follow up, is the upgrade from integer to bigint violent? I
> assume so: it has to physically resize the column on disk, right?
>

I think we've said several times, any ALTER TABLE ADD/ALTER COLUMN like
that will cause every single tuple (row) of the table to be updated.
when rows are updated, the new row is written, then the old row is
flagged for eventual vacuuming.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2012-03-14 02:07:26 restore_command is not running on my standby
Previous Message Carson Gross 2012-03-14 01:10:44 Re: Upgrade questions