pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Copy entire schema A to a different schema B
Date: Wed, 20 Feb 2019 18:40:54 -0600
Message-ID: <cccd8960-491e-543f-f4b0-505f97b02be3@gmail.com> (raw)
In-Reply-To: <d9e0d326-9f00-b9b9-b6b0-4ae68515b735@aklaver.com>
References: <CAB_W-NMjRS4ah_txcF=pZmYA_KfZLm+mT5eL26-az+xTHEdXcA@mail.gmail.com>
	<9aa9cb06-8bca-910c-5251-d974849dda7c@gmail.com>
	<CAB_W-NN-ty=XL1Mmf4BfFj8P1ruczGNxBd4vxSZgYVG7N0A+3g@mail.gmail.com>
	<65a629f9-6745-6cec-30d0-87eaf1ffa7bf@aklaver.com>
	<CAB_W-NORbOCrssvc+b1CcPy=Ka=k_5WU4bAtMtJiMDwjY=AzOA@mail.gmail.com>
	<d9e0d326-9f00-b9b9-b6b0-4ae68515b735@aklaver.com>

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.




view thread (17+ messages)  latest in thread

Message-ID: <cccd8960-491e-543f-f4b0-505f97b02be3@gmail.com>
Permalink:  ../cccd8960-491e-543f-f4b0-505f97b02be3@gmail.com/
Also on:    postgresql.org/message-id/cccd8960-491e-543f-f4b0-505f97b02be3@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Copy entire schema A to a different schema B
  In-Reply-To: <cccd8960-491e-543f-f4b0-505f97b02be3@gmail.com>
  References: <CAB_W-NMjRS4ah_txcF=pZmYA_KfZLm+mT5eL26-az+xTHEdXcA@mail.gmail.com> <9aa9cb06-8bca-910c-5251-d974849dda7c@gmail.com> <CAB_W-NN-ty=XL1Mmf4BfFj8P1ruczGNxBd4vxSZgYVG7N0A+3g@mail.gmail.com> <65a629f9-6745-6cec-30d0-87eaf1ffa7bf@aklaver.com> <CAB_W-NORbOCrssvc+b1CcPy=Ka=k_5WU4bAtMtJiMDwjY=AzOA@mail.gmail.com> <d9e0d326-9f00-b9b9-b6b0-4ae68515b735@aklaver.com> <cccd8960-491e-543f-f4b0-505f97b02be3@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox