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 1sVtpK-00CDnD-8I for pgsql-admin@arkaria.postgresql.org; Mon, 22 Jul 2024 14:15:46 +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 1sVtpH-002bGs-6B for pgsql-admin@arkaria.postgresql.org; Mon, 22 Jul 2024 14:15:43 +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 1sUndX-00Gk9n-8X; Fri, 19 Jul 2024 13:27:03 +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 1sUndU-000NKD-BY; Fri, 19 Jul 2024 13:27:02 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 5514361994; Fri, 19 Jul 2024 13:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1721395618; bh=XRItap40y+PkqtVWZMN2a3pESQudcvhqtCItYeRJ+IA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=YrLs7QkSnxkuJoSKJjkiOimK5KSLKFRdhztbkC+KJFRqj0Vv89mwdoFnUnrtQjUuJ esCMwsNZxjKyjyIFu1Um+U3SRShiZoWX2zyoVJfriMgzjPnkHhdSS1oofpzqbMTbzc LQSPVeQLzE/maL447agsBDy9TOQ6k8q+auiA0Re9t7ljeUQL4RoPZgDBDhCQVo39SV bKL8elETlfIUiNYi4esVQm4xxioimtOD5MdDfH5FXvlGea/I+ws8prZplKfEDNFSNp IDf7/k4P1AnW+zd7uMnPhc7Cg+OkqHcP32ST0WY9AXQLoUFryQJSnCbe3Ia+nvaTCG YHp7KYOIdx4tg== 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 h6I-GOjexzTK; Fri, 19 Jul 2024 13:26:57 +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 B4A4D61958; Fri, 19 Jul 2024 13:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1721395617; bh=XRItap40y+PkqtVWZMN2a3pESQudcvhqtCItYeRJ+IA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=IhVcEbhr3x4byRl58Bg+xQccrRgruHiFooT9CrjPWcgDkW33UBrzVHKyG2GEiZLG6 7PG2FLioYMbeEmKGHWvUbfiEedFFYrxHAR51Dm46TNgmqcmi0YUXgn+IeC2GVD5Qou F6VK5nXxVI+9nJ1+2t7mXyoeLxgp9MQyBp4er7kDhkdZeCcRrlmoiCl1OWamh7dtyL YZMcvzlTLuwRUb5mu+zHE/rVlg7bfAkHgCJ7S23KFuIWKkmLRnstwbGsnVpR5xq4iu 58FafAiC92yr4gVXmhaHf20ZxMhlAbbfjzSIgXWU542sHQ7jlH4U7+yJ4JJl/V5Sp6 57hkhioMs8TLQ== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Enhance pg_dump multi-threaded streaming (WAS: Re: filesystem full during vacuum - space recovery issues) From: Scott Ribe In-Reply-To: <95f5bff5-b392-4c2f-9708-8fd5547c620c@talentstack.to> Date: Fri, 19 Jul 2024 07:26:47 -0600 Cc: Pgsql-admin , pgsql-hackers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <6F46CFEB-3C3A-4CEC-89DF-57D8225A5863@elevated-dev.com> References: <7dee2c00-6184-49c5-b303-58113c1d04c6@talentstack.to> <95f5bff5-b392-4c2f-9708-8fd5547c620c@talentstack.to> To: Thomas Simpson X-Mailer: Apple Mail (2.3774.600.62) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Do you actually have 100G networking between the nodes? Because if not, = a single CPU should be able to saturate 10G.=20 Likewise the receiving end would need disk capable of keeping up. Which = brings up the question, why not write to disk, but directly to the = destination rather than write locally then copy? Do you require dump-reload because of suspected corruption? That's a = tough one. But if not, if the goal is just to get up and running on a = new server, why not pg_basebackup, streaming replica, promote? That = depends on the level of data modification activity being low enough that = pg_basebackup can keep up with WAL as it's generated and apply it faster = than new WAL comes in, but given that your server is currently keeping = up with writing that much WAL and flushing that many changes, seems = likely it would keep up as long as the network connection is fast = enough. Anyway, in that scenario, you don't need to care how long = pg_basebackup takes. If you do need a dump/reload because of suspected corruption, the only = thing I can think of is something like doing it a table at a = time--partitioning would help here, if practical.=