Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uY7Yl-001PQV-8q for pgsql-general@arkaria.postgresql.org; Sat, 05 Jul 2025 18:24:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uY7Yj-008xaH-68 for pgsql-general@arkaria.postgresql.org; Sat, 05 Jul 2025 18:24:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uY7Yi-008xa5-Qw for pgsql-general@lists.postgresql.org; Sat, 05 Jul 2025 18:24:21 +0000 Received: from mail84.out.titan.email ([3.216.99.62]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uY7Yg-005vsU-2W for pgsql-general@lists.postgresql.org; Sat, 05 Jul 2025 18:24:20 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out.flockmail.com (Postfix) with ESMTP id 204F9E0018 for ; Sat, 5 Jul 2025 18:24:17 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OBdk0Ipee+FmeK6v1MJoXLCmWvzaYigfpLsMwPbb0fg=; c=relaxed/relaxed; d=pfortin.com; h=subject:references:message-id:in-reply-to:mime-version:date:from:to:from:to:subject:date:message-id:in-reply-to:references:cc:reply-to; q=dns/txt; s=titan1; t=1751739857; v=1; b=G7TuVqAE5mXA8tcNOO+COwU5AP2C78pV6Dgs+uOQ+WoBYomPO19wZODrCFvgV2aWnE3MWXry Z0HfzFLEq8wVZm0iSn//gXKPGAXIatkiIbO4+cPKHtTN2dIfm1/GNGT7AjHcF9T6j9TqkatlCPx CGin564H/oAyzbJMklz923Z0= Received: from pfortin.com (h194.51.155.207.dynamic.ip.windstream.net [207.155.51.194]) by smtp-out.flockmail.com (Postfix) with ESMTPA id D04CCE0007 for ; Sat, 5 Jul 2025 18:24:16 +0000 (UTC) Date: Sat, 5 Jul 2025 14:24:16 -0400 Feedback-ID: :pf@pfortin.com:pfortin.com:flockmailId From: pf@pfortin.com To: pgsql-general@lists.postgresql.org Subject: Re: pg_upgrade: can I use same binary for old & new? Message-ID: <20250705142416.06e99667@pfortin.com> In-Reply-To: References: <20250705125207.31b4d475@pfortin.com> X-Mailer: Claws Mail 4.3.1git142 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-F-Verdict: SPFVALID X-Titan-Src-Out: 1751739856952334987.26132.5144299789701029007@prod-use1-smtp-out1004. X-CMAE-Score: 0 X-CMAE-Analysis: v=2.4 cv=ZKctmW7b c=1 sm=1 tr=0 ts=68696dd0 a=qh1+orYxbfpu+9ysfXJjVg==:117 a=qh1+orYxbfpu+9ysfXJjVg==:17 a=kj9zAlcOel0A:10 a=CEWIc4RMnpUA:10 a=wZFmJIXWuyA2eNGbRBcA:9 a=CjuIK1q_8ugA:10 a=zZCYzV9kfG8A:10 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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). Cheers, Pierre