Re: V12 to V16 Upgrade -- does size matters?

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: V12 to V16 Upgrade -- does size matters?
Date: 2025-02-25 05:18:26
Message-ID: CANzqJaDjFKzYoJd+F3z16nSo8tw4XZfETcrsMDB2ZDefuZ503g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Feb 24, 2025 at 11:48 PM Edwin UY <edwin(dot)uy(at)gmail(dot)com> wrote:

> Hi,
>
> Does size matter when doing the upgrade?
> Just noted the non-PROD database is 20G and the PROD one is around 500G.
> Does the size of the database affect how long the upgrade will finish?
>

Yes, if you run standard pg_upgrade. (It's got to copy all the files to the
new directory.)
No, if you run pg_upgrade with the --link or --clone options.

520GB isn't *that* much, though.

Beware, though: using the --link and --clone options don't let you revert
*after* starting the new instance.

Especially when running the ANALYZE post-upgrade.
>

Maybe, or maybe not. Bigger tables take longer to ANALYZE. But if there
are lots of CPUs and you've got lots of medium-sized tables, then
--jobs=$(nproc) will chew through them much faster.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message shammat 2025-02-25 11:55:01 Re: Changing the Datatype from Bit to Boolean.
Previous Message Edwin UY 2025-02-25 04:47:37 V12 to V16 Upgrade -- does size matters?