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 1oGaDj-0003NQ-Jx for pgsql-general@arkaria.postgresql.org; Wed, 27 Jul 2022 06:08:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oGaDi-0001lq-Ar for pgsql-general@arkaria.postgresql.org; Wed, 27 Jul 2022 06:08:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGaDh-0001lb-Tu for pgsql-general@lists.postgresql.org; Wed, 27 Jul 2022 06:08:34 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGaDf-00072v-P9 for pgsql-general@lists.postgresql.org; Wed, 27 Jul 2022 06:08:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=31p/E4E57y12Mx32i0EI980IZ48rKxEO4nWPiPHlw0c=; b=nNJr6RMWYnMLG6er5XOT+rXylg WrLWJ3OYbzBkdMR5Its/LOLGtSYeA+no4zKGCbfxPjRJnWy0qsKAmHw6z5Rk8aLTSv8iyhtWmDXpa VlLStV18GRSLXdzYafxTLLXUOy7P8xiMnxjh9jfHRwAWPQRm7C5kWlTc2MNYWLJWxNCo=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1oGaDd-0004SN-HP; Wed, 27 Jul 2022 08:08:29 +0200 Date: Wed, 27 Jul 2022 08:08:29 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Adrian Klaver Cc: Ron , pgsql-general@lists.postgresql.org, raghuldrag@gmail.com Subject: Re: Message-ID: <20220727060829.GA12917@depesz.com> Reply-To: depesz@depesz.com References: <19522cdf-edd8-8513-10f7-689657cde12c@aklaver.com> <81fc9cfc-031a-2797-47fa-112b79edf626@aklaver.com> <116a02ee-6567-e177-ebfc-d9e2c94a57de@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <116a02ee-6567-e177-ebfc-d9e2c94a57de@aklaver.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 26, 2022 at 10:48:47AM -0700, Adrian Klaver wrote: > On 7/26/22 9:29 AM, Ron wrote: > > On 7/26/22 10:22, Adrian Klaver wrote: > > > On 7/26/22 08:15, Rama Krishnan wrote: > > > > Hi Adrian > > > > > > > > > > > > > What is size of table? > > > > > > > > I m having two Database example > > > > > > > > 01. Cricket 320G > > > > 02.badminton 250G > > > > > > So you are talking about an entire database not a single table, correct? > > > > In a private email, he said that this is what he's trying: > > Pg_dump -h endpoint -U postgres Fd - d cricket | aws cp - > > s3://dump/cricket.dump > > > > It failed for obvious reasons. > From what I gather it did not fail, it just took a long time. Not sure > adding -j to the above will improve things, pretty sure the choke point is > still going to be aws cp. It's really hard to say what is happening, because the command, as shown wouldn't even work. Starting from Pg_dump vs. pg_dump, space between `-` and `d`, "Fd" as argument, or even the idea that you *can* make -Fd dumps to stdout and pass it to aws cp. depesz