pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: D Kavan <bitsandbytes88@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: pg_restore
Date: Thu, 11 Aug 2005 15:29:22 -0400
Message-ID: <BAY102-F2E0B7279722C1B5AF3904D1BD0@phx.gbl> (raw)

Hi all,

We are running postgres 8.03.

Getting a dump is no problem on our 6 GB database.  However, the restore is 
a killer, it takes 10 minutes for the dump pg_dump, but over 5 hours for a 
restore.  Is there a way to 'turn off transactions' on the restore to speed 
things up?   I've tried different restore commands, but I don't see anything 
on transactions logging.  What else could speed it up?   oracle and sybase 
can restore the same db in just 90 minutes.    Does postgres just not know 
how to take advantage of the resources unless different users are involved?  
In other words to speed it up, should I script different users to each 
restore some of the tables to a database and then after all the tables have 
restored, restore keys and then indexes?   Thanks for any help.

~DjK

psql dbname < dump_file
pg_restore -d test_restore_2 -Fc niehs_dump.backup





view thread (25+ messages)  latest in thread

Message-ID: <BAY102-F2E0B7279722C1B5AF3904D1BD0@phx.gbl>
Permalink:  ../BAY102-F2E0B7279722C1B5AF3904D1BD0@phx.gbl/
Also on:    postgresql.org/message-id/BAY102-F2E0B7279722C1B5AF3904D1BD0@phx.gbl

 · 

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-admin@postgresql.org
  Cc: bitsandbytes88@hotmail.com
  Subject: Re: pg_restore
  In-Reply-To: <BAY102-F2E0B7279722C1B5AF3904D1BD0@phx.gbl>
  References: <BAY102-F2E0B7279722C1B5AF3904D1BD0@phx.gbl>

* 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