pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@simkin.ca>
To: pgsql-general@postgresql.org
Subject: Re: pg_Restore
Date: Mon, 21 Jan 2013 08:10:16 -0800
Message-ID: <5339745.QdxrhJMicz@skynet.simkin.ca> (raw)
In-Reply-To: <COL002-W40742820203F6CA7F83992D3170@phx.gbl>
References: <COL002-W91D920E81B347335FEE275D3100@phx.gbl>
	<CAKt_Zfty6HDmEhU+-Jue+s8Q5u8vfPJrbQnNA5O4ROhtpWXKCQ@mail.gmail.com>
	<COL002-W40742820203F6CA7F83992D3170@phx.gbl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

On Monday, January 21, 2013 08:40:05 PM bhanu udaya wrote:
> Hello,Thanks alot for all your replies. I tried all settings suggested, it
> did not work. pg_restore is very slow. It does not come out less than 1 1/2
> hour. Can you please let me know the procedure for Template. Will it
> restore the data also . Please update. I need the database (metadata +
> data) to be restored back after certain Java executions.  Ex:- I have 9.5
> gb database (with 500 schemas + data). This is treated as base database and
> it needs to be restored every time after certain transactions. 

Don't use pg_restore, do the backups/restorations outside of PostgreSQL:

- run on a server with a snapshot-capable volume manager, use that for quick 
restores 
- just try using rsync from a backup copy of the base data directory 

(either of the above require PostgreSQL to not be running during the 
restorations)



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (67+ messages)  latest in thread

Message-ID: <5339745.QdxrhJMicz@skynet.simkin.ca>
Permalink:  ../5339745.QdxrhJMicz@skynet.simkin.ca/
Also on:    postgresql.org/message-id/5339745.QdxrhJMicz@skynet.simkin.ca

 · 

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: ahodgson@simkin.ca
  Subject: Re: pg_Restore
  In-Reply-To: <5339745.QdxrhJMicz@skynet.simkin.ca>
  References: <COL002-W91D920E81B347335FEE275D3100@phx.gbl> <CAKt_Zfty6HDmEhU+-Jue+s8Q5u8vfPJrbQnNA5O4ROhtpWXKCQ@mail.gmail.com> <COL002-W40742820203F6CA7F83992D3170@phx.gbl> <5339745.QdxrhJMicz@skynet.simkin.ca>

* 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