Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwcQB-0005vE-5X for pgsql-general@arkaria.postgresql.org; Thu, 21 Feb 2019 00:41:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwcQA-00048W-1Y for pgsql-general@arkaria.postgresql.org; Thu, 21 Feb 2019 00:41:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwcQ9-0003ul-Es for pgsql-general@lists.postgresql.org; Thu, 21 Feb 2019 00:41:01 +0000 Received: from mail-it1-x142.google.com ([2607:f8b0:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwcQ7-0006WW-AC for pgsql-general@lists.postgresql.org; Thu, 21 Feb 2019 00:41:00 +0000 Received: by mail-it1-x142.google.com with SMTP id v72so20367379itc.0 for ; Wed, 20 Feb 2019 16:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=pC4Vw5FMdP4HBCzID5v5RZQbAtOA9RxQOENTvVTIlDw=; b=t/PxtEiBOIEZWNw3fhu2ka2o6GsIhTvwfoJ4DIgDCC+eeFy22IheTOEDQmD8oDSx+N kt/0TrCNDE5eypTlL2Q+//hT8zgIjd6hg05xhg6BhXzdZPHjzTSGNDi2sQH6s2qrEI7e BmUYM6W2Aj/imkRS9IR5/NpfYSowL4hu33M0RLG2eIrgi7s05JCooM5thRe9AEA/rkga Ti/uHEO6Azf/Vrzj44dddLjDfeUtzk5yNBU0EGSPTQTo9bNXUJr5PbAgCEmKHbO415vt VfoyGTTl7OfmEbVOJTxDIpfkMReCaN/Ho49/SCSGh7klPYnhheznfTtb+r4Qm016cmG1 LarQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=pC4Vw5FMdP4HBCzID5v5RZQbAtOA9RxQOENTvVTIlDw=; b=C86DBdHULnDgbQct8VVsrnys1S09e2pcVppk7HCKwjOjXyo0w68LGLzqnzwTw3sH5o fkOT9Uyx+/Zx8ArlWxDxpolLOHYcBajVCVl/+IYaCITsSnCxxT8K4eduuw2Q/8zbin8x XMi16M/hI4UO5H5tBNT5l5Tj/znyh3f+zqMr68OGxmuX1QABSxU82z9dTYegp8iTnj68 /2bfeTrUgYKf108BOS2KK13klrA8YLSamRVHXW55ojMzxM0ODNxmdlRp/gFQT91t9Gel n535+bk7u1hqgIso2BkTUCX6FJFw7lfzGupKJ9UlWceRcrU+4U2N/3Gf0u8mS7N6uY/b QpPw== X-Gm-Message-State: AHQUAuahLiP0vxdOn79pI+SGXbXMhukkpwochPzLzdzZDE0RwSOH/8Gh fkKk7aA3ElemAo4CuoNOfQ+4pe7z X-Google-Smtp-Source: AHgI3IYZZk5dqsYPjSlVBySa+Tv3j/lud7BjAKzxz4K/MohTgVEeD/rCk9zUZy29+OKH/fcTO4QpTQ== X-Received: by 2002:a24:dd0a:: with SMTP id t10mr7038286itf.122.1550709657042; Wed, 20 Feb 2019 16:40:57 -0800 (PST) Received: from [10.22.10.6] ([172.98.67.72]) by smtp.googlemail.com with ESMTPSA id 186sm4715973itz.4.2019.02.20.16.40.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Feb 2019 16:40:56 -0800 (PST) Subject: Re: Copy entire schema A to a different schema B To: pgsql-general@lists.postgresql.org References: <9aa9cb06-8bca-910c-5251-d974849dda7c@gmail.com> <65a629f9-6745-6cec-30d0-87eaf1ffa7bf@aklaver.com> From: Ron Message-ID: Date: Wed, 20 Feb 2019 18:40:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/20/19 6:16 PM, Adrian Klaver wrote: > On 2/20/19 2:22 PM, Tiffany Thang wrote: >> Hi Adrian, >> I managed to backup my table in parallel using -Fd but I'm back to my >> original issue where I could not restore the table to a different schema. >> >> For example, >> I would like to backup testuser1.mytable and restore it to >> testuser2.mytable. >> >> pg_dump -U testuser1 -Fd -f c:\temp\testuser1 -j 8 -t mytable -h myserver >> testdb > > Is table mytable big enough to actually need 8 parallel jobs? > A single table will only use a single thread, no matter how big it is, no?  (That is my experience with v9.6, at least.) -- Angular momentum makes the world go 'round.