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 1uY7ea-001QwY-JE for pgsql-general@arkaria.postgresql.org; Sat, 05 Jul 2025 18:30:24 +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 1uY7eY-0092kN-Mj for pgsql-general@arkaria.postgresql.org; Sat, 05 Jul 2025 18:30:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uY7eY-0092kD-Ba for pgsql-general@lists.postgresql.org; Sat, 05 Jul 2025 18:30:23 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uY7eX-005kcB-0Z for pgsql-general@lists.postgresql.org; Sat, 05 Jul 2025 18:30:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 565IUKHj065042; Sat, 5 Jul 2025 14:30:20 -0400 From: Tom Lane To: pf@pfortin.com cc: pgsql-general@lists.postgresql.org Subject: Re: pg_upgrade: can I use same binary for old & new? In-reply-to: <20250705142416.06e99667@pfortin.com> References: <20250705125207.31b4d475@pfortin.com> <20250705142416.06e99667@pfortin.com> Comments: In-reply-to pf@pfortin.com message dated "Sat, 05 Jul 2025 14:24:16 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <65040.1751740220.1@sss.pgh.pa.us> Date: Sat, 05 Jul 2025 14:30:20 -0400 Message-ID: <65041.1751740220@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk pf@pfortin.com writes: > On Sat, 5 Jul 2025 11:11:32 -0700 Adrian Klaver wrote: >> How did you measure above? > # du -sb /var/lib/pgsql/data > 8227910662297 /var/lib/pgsql/data It's likely that there's a deal of bloat in that. Even if there's not much bloat, this number will include indexes and WAL data that don't appear in pg_dump output. >> 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'd say give it a try; be sure to use one of the pg_dump modes that compress the data. regards, tom lane