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 1qMYU1-002g9R-9M for pgsql-admin@arkaria.postgresql.org; Thu, 20 Jul 2023 18:34:37 +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 1qMYTz-00ES9A-FO for pgsql-admin@arkaria.postgresql.org; Thu, 20 Jul 2023 18:34:35 +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 1qMYTy-00ES7Q-Sa for pgsql-admin@lists.postgresql.org; Thu, 20 Jul 2023 18:34:35 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qMYTv-000Y5h-Qs for pgsql-admin@lists.postgresql.org; Thu, 20 Jul 2023 18:34:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5F667622F2; Thu, 20 Jul 2023 18:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1689878069; bh=KBY9vFznRPXIF8F15CFh0402yhL2eTyFVaPPMHgLmL0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=HCnYL11ELT0fUoOVyy02V3Vkqv2dVqpySrkAqd53HSoBiVpZTb6tngFW9JxJZ62ip oxK0jomfXRTfrcyu/qTLpPR7ztVfNp7I7z3QLF59uX/dHBA5mzFHzg+IuuypuwiX4K u9mdsVeF8Ccatgwgkm8WTGAGZmTvY2JDR/yxy6JNUPAuxCetgMKMB2V7UNP28e5UD/ RdKKp80Na8DWJCyOen9h8mKScOPC64YGqD1fq4ndqai+FB2mlKTUbACIgJP72T0ulf jXuxjDjfFYY2/J6IM8yvSsBowJj/0rgsoHmxQkAUMeVqjmLJTXJvcB+LbCfQTrpm9C Rp9wpImFKCw7Q== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wuRXIefGj4P2; Thu, 20 Jul 2023 18:34:28 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id B7527621F9; Thu, 20 Jul 2023 18:34:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1689878068; bh=KBY9vFznRPXIF8F15CFh0402yhL2eTyFVaPPMHgLmL0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=T30wMiw2WJdDglKZ2pDbrNjeT4L14MkQZ7Cnd1e+jaEpUtXpU6rUS/oXCXDOEKfWq 7YfL3SoPtdbcBDndxfd/xUaNkAuTXyeNQyAKt1JtP5+3xmMKIbT+XpCcgAwr6MKzYb Htr1C1GJuwrJdyDQxVoozEIv+xAf+QroJSFXFTNu7jidDqEupbLvxtZC6Jcqci5Jh4 CuMtdhbblKvD5mpAfxynCRX+7iKdAaD0wDkBwTn3bMzsSoYaJidagS/INyDEH5BlQU /NwIRzkbds70Kr30y3FGKe0i0nallXaLtjWXx5V8RMz8BOpIVAPBiI1zXW8lnjZtMO 3XRXac0XC4IDA== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: Upgrade from PG12 to PG From: Scott Ribe In-Reply-To: <1cb1652e-286a-077e-950d-516970ecf499@gmail.com> Date: Thu, 20 Jul 2023 12:34:18 -0600 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <3901e0da-819b-5b6d-bb57-c29f6d384725@gmail.com> <1cb1652e-286a-077e-950d-516970ecf499@gmail.com> To: Jef Mortelle X-Mailer: Apple Mail (2.3731.600.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 20, 2023, at 11:05 AM, Jef Mortelle = wrote: >=20 > 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 wrote: >=20 > 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?)=