Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxJx1-0005p5-GQ for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2013 16:10:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TxJx1-0005Yt-1M for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2013 16:10:23 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxJx0-0005Yo-12 for pgsql-general@postgresql.org; Mon, 21 Jan 2013 16:10:22 +0000 Received: from zeus.simkin.ca ([72.51.27.124]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TxJwy-00039v-N4 for pgsql-general@postgresql.org; Mon, 21 Jan 2013 16:10:21 +0000 Received: from vpn.reinvent.com (vpn.reinvent.com [72.51.27.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zeus.simkin.ca (Postfix) with ESMTPSA id 325502700BE for ; Mon, 21 Jan 2013 08:10:19 -0800 (PST) From: Alan Hodgson 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> User-Agent: KMail/4.9.3 (Linux/3.6.11-gentoo; KDE/4.9.3; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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