Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pWgnx-00031i-TZ for pgsql-general@arkaria.postgresql.org; Mon, 27 Feb 2023 16:56:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pWgnw-00007t-GD for pgsql-general@arkaria.postgresql.org; Mon, 27 Feb 2023 16:56:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pWgnw-00007j-01 for pgsql-general@lists.postgresql.org; Mon, 27 Feb 2023 16:56:48 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pWgnX-0006gr-HF for pgsql-general@lists.postgresql.org; Mon, 27 Feb 2023 16:56:28 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 864615C012D; Mon, 27 Feb 2023 11:56:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 27 Feb 2023 11:56:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1677516982; x= 1677603382; bh=+kHrYaTo5MRsGdqCHxnmORsGRhfCbTyb4WK82NCYOZM=; b=t sSYfot/L3C4JfUXHOODVWv5DlhLFebhC4rw1R93CHyR/vwz1vk8oOxhgZcdzg6jo G6xfUjgre3CKP3qaSMAA1r66+wrMqSH7rdPDxr1ezw4xYMjciZ2dx+Qa6QsqF6AX xlx1D3nu+R8q6fOxjh6eze3JnoA11QRRgaj43/Bm2SCdUoIOtE+oSPO2f8ERRLWN VVACMfGzrGqsdyIbH1swxvcgmxIib0VsLxdorxHUBdOPWbh/FKYXNUh6aMGSQEZS DnAatxisymHWZWIG6PlIGZdhXAMvJXs+6AGaniJtUPyvuznCS9ihn0PlaYqIwTny z4uztiug8rcHB5gIasNyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677516982; x= 1677603382; bh=+kHrYaTo5MRsGdqCHxnmORsGRhfCbTyb4WK82NCYOZM=; b=o 84p4bliGU7odO8j7pKBfWJO9kSIta0uTrhASQpSzzggIB52iT23ZH6M67fWK1PHw 6/cZ/mDDDhSBxZWzcS9Td6zjOLC4yvhfewISGCHQ6H8kfZ5iIeJpLbhDQZeYsCJn aNuksqruHts105Uffrh1csWXy0dM/Irv1oQDO4PT8xVqlNRqC+k3tKHb8fYJb0wT Do3EwZCgHl227ZPtt9g5SKLQKgvp90P6EnLtMJC4XEP329WeCVO6B+985XAn7ryG qGKA9iqi5NQQYNynnVWEvR36ChN+mxR5vt06XNV8bJkPOTuAz+51n28BPou+133G MpUVeq/uTG9jxLcrQeSoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeltddgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ejredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeejgedthf euhfetgfffvdehudelteegjeduveffkeetgeejieehueduleelgfffffenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Feb 2023 11:56:21 -0500 (EST) Message-ID: <12a7a897-ff85-5280-7721-5e6d0e7cb30b@aklaver.com> Date: Mon, 27 Feb 2023 08:56:21 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: pg_upgradecluster transfering only a portion of the data Content-Language: en-US To: Tom Lane Cc: =?UTF-8?Q?D=c3=a1vid_Suchan?= , pgsql-general@lists.postgresql.org References: <372205.1677515818@sss.pgh.pa.us> <1488b8f2-fe98-3be2-0d27-4c52734f15af@aklaver.com> <373111.1677516529@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: <373111.1677516529@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/27/23 08:48, Tom Lane wrote: > Adrian Klaver writes: >> On 2/27/23 08:36, Tom Lane wrote: >>> If it was based on something like "du", perhaps the measurement >>> was fooled by the fact that most of the data files will be hard-linked >>> between the old and new clusters. > >> Does that happen without the --link option? > > No, but the OP didn't mention whether he used that, and even if he > didn't say it explicitly the pg_upgradecluster wrapper might've > supplied it. Alright the OP's command was: pg_upgradecluster 9.6 main pg_upgradecluster needs the --link(-k) option to use link instead of copy. > > regards, tom lane -- Adrian Klaver adrian.klaver@aklaver.com