Re: Upgrade from PG12 to PG

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Jef Mortelle <jefmortelle(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Upgrade from PG12 to PG
Date: 2023-07-20 18:34:18
Message-ID: F6998B6F-11FA-4A9F-954B-E4388B835483@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Jul 20, 2023, at 11:05 AM, Jef Mortelle <jefmortelle(at)gmail(dot)com> wrote:
>
> so, yes pg_ugrade start a pg_dump session,

Only for the schema, which you can see in the output you posted.

> Server is a VM server, my VM has 64GB SuseSLES attached to a SAN with SSD disk (Hp3Par)

VM + SAN can perform well, or introduce all sorts of issues: busy neighbor, poor VM drivers, SAN only fast for large sequential writes, etc.

> On Jul 20, 2023, at 11:22 AM, Ron <ronljohnsonjr(at)gmail(dot)com> wrote:
>
> Note also that there's a known issue with pg_upgrade and millions of Large Objects (not bytea or text, but lo_* columns).

Good to know, but it would be weird to have millions of large objects in a 1TB database. (Then again, I found an old post about 3M large objects taking 5.5GB...)

Try:
time a run of that pg_dump command, then time a run of pg_restore of the schema only dump
time a file copy of the db to a location on the SAN--purpose is not to produce a usable backup, but rather to check IO throughput
use the link option on pg_upgrade

Searching on this subject turns up some posts about slow restore of large objects under much older versions of PG--not sure if any of it still applies.

Finally given the earlier confusion between text and large objects, your apparent belief that text columns correlated to large objects, and that text could hold more data than varchar, it's worth asking: do you actually need large objects at all? (Is this even under your control?)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ram Pratap Maurya 2023-07-21 04:06:45 Server unable to UP after restore
Previous Message Ron 2023-07-20 17:22:39 Re: Upgrade from PG12 to PG