Re: Progress of ALTER TABLE on inheritance-partitioned table?

From: Michael Guissine <mguissine(at)gmail(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Progress of ALTER TABLE on inheritance-partitioned table?
Date: 2023-10-27 13:41:20
Message-ID: CACxDrAnhOGA6LU3VhM8X3iu8WHLyWndoRqiydLBRfwzk7gaBXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

The short answer is don't do that if the table is pretty big unless you can
afford prolonged outage. The better way is to add new column, add triggers
to populate it on insert/update/delete, backfill, and swap

On Fri, Oct 27, 2023, 09:34 Ron <ronljohnsonjr(at)gmail(dot)com> wrote:

> Pg 9.6.24 (Yes, I know; it's out of my control.)
>
> I'm ALTERing that table to change a column from INTEGER to BIGINT. Of
> course, all of the partitions are pretty big.
>
> Even though it's one giant transaction, is there any way for me to monitor
> it's progress?
>
> --
> Born in Arizona, moved to Babylonia.
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rozad Khalaf 2023-10-27 13:42:37 Introducing PostgresFly: A New PostgreSQL Installation Tool
Previous Message Ron 2023-10-27 13:34:15 Progress of ALTER TABLE on inheritance-partitioned table?