public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: pg_upgrade: can I use same binary for old & new?
Date: Sat, 5 Jul 2025 15:10:35 -0400
Message-ID: <CANzqJaBPjHBufQtcmHopcMNpR7VymJZZQXyijifD45vVrxcEog@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>

On Sat, Jul 5, 2025 at 2:24 PM <[email protected]> wrote:

> On Sat, 5 Jul 2025 11:11:32 -0700 Adrian Klaver wrote:
>
> >On 7/5/25 09:52, Pierre Fortin wrote:
>
> >> Wanting to upgrade from:
> >> PostgreSQL 15.13 on x86_64-mageia-linux-gnu,
> >> compiled by gcc (Mageia 15.1.0-1.mga10) 15.1.0, 64-bit
> >> to:
> >> PG 17.5
> >>
> >> Way back, I was able to use -k|--link option on pg_upgrade (PG13 to
> PG15);
> >> but since then:
> >>
> >> - my DB has grown to over 8TB
> >
> >How did you measure above?
>
> # du -sb /var/lib/pgsql/data
> 8227910662297   /var/lib/pgsql/data
>
> >> - even with ~70TB, I don't have enough contiguous disk space to
> >>    dump/restore
> >
> >What was the pg_dump command?
>
> Didn't try given:
> $ df /mnt/db
> Filesystem      Size  Used Avail Use% Mounted on
> /dev/sdh1        17T   13T  3.0T  82% /mnt/db
>
> I suppose I could dump each of the 1408 objects to various available
> drives; but given my previous experience with PG13 to PG15 using --link
> which took seconds; I'm hoping to avoid wasting time (at my age, hours
> matter).
>

There's something you're not telling us.  The whole point of "pg_upgrade
--link" is an in-place upgrade. It might use a few extra GB of disk space
for when it backs up the PG15 schema and restores it to PG17.  Thus, why
are you complaining about running out of disk space?

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


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pg_upgrade: can I use same binary for old & new?
  In-Reply-To: <CANzqJaBPjHBufQtcmHopcMNpR7VymJZZQXyijifD45vVrxcEog@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox