Re: Allowing parallel pg_restore from pipe

From: Shaun Thomas <sthomas(at)optionshouse(dot)com>
To: Timothy Garnett <tgarnett(at)panjiva(dot)com>
Cc: Joachim Wieland <joe(at)mcknight(dot)de>, Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Allowing parallel pg_restore from pipe
Date: 2013-05-16 17:44:32
Message-ID: 51951B00.1090708@optionshouse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05/16/2013 12:16 PM, Timothy Garnett wrote:

> I think you'd have to be real careful around foreign key constraints
> for that to work.

Not especially. All you need to do is bootstrap the database with a
bunch of empty table targets (no constraints, keys, etc), then restore
with the xargs command. Then you can apply the constraints, keys, and
indexes later by doing a schema-only parallel pg_restore.

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-676-8870
sthomas(at)optionshouse(dot)com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-05-16 18:16:23 Re: Better handling of archive_command problems
Previous Message Alvaro Herrera 2013-05-16 17:39:42 Re: PostgreSQL 9.3 beta breaks some extensions "make install"