pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Olivier Boissard <olivier.boissard@cerene.fr>
To: Chris Hoover <revoohc@gmail.com>
Cc: arnaulist@andromeiberica.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Suggestions needed about how to dump/restore a database
Date: Wed, 20 Dec 2006 10:37:49 +0100
Message-ID: <4589046D.60603@cerene.fr> (raw)
In-Reply-To: <1d219a6f0612191344x2f772a7el8ef9117a057c9cd8@mail.gmail.com>
References: <45881D1A.6090904@andromeiberica.com>
	<1d219a6f0612191344x2f772a7el8ef9117a057c9cd8@mail.gmail.com>

Chris Hoover a écrit :
> One other option is to shut the database down competely, and then do a 
> copy of the file system the new server.  I have done this when I need 
> to move a very large database to a new server.  I can copy 500GB's in 
> a couple of hours, where restoring my large databases backups would 
> take 10+ hours.  Just make sure you are keeping postgres at the same 
> version level.
>
> HTH,
>
> Chris
>
> On 12/19/06, *Arnau* <arnaulist@andromeiberica.com 
> <mailto:arnaulist@andromeiberica.com>> wrote:
>
>     Hi all,
>
>        I've got a DB in production that is bigger than 2GB that dumping it
>     takes more than 12 hours. I have a new server to replace this old one
>     where I have restore the DB's dump. The problem is I can't afford to
>     have the server out of business for so long, so I need your advice
>     about
>     how you'd do this dump/restore. The big amount of data is placed
>     in two
>     tables (statistics data), so I was thinking in dump/restore all
>     except
>     this two tables and once the server is running again I'd dump/restore
>     this data. The problem is I don't know how exactly do this.
>
>        Any suggestion?
>
>     Thanks
>     --
>     Arnau
>
>
>     ---------------------------(end of
>     broadcast)---------------------------
>     TIP 9: In versions below 8.0, the planner will ignore your desire to
>            choose an index scan if your joining column's datatypes do not
>            match
>
>
How many tables have you got in your database ?

If you have only a few tables you can dump them one at a time

pgdump -t ....


Olivier

Attachments:

olivier.boissard.vcf (text/x-vcard, 239B) download begin:vcard fn:Olivier Boissard n:Boissard;Olivier org:Cerene Services adr:;;3 rue Archimede;La Chapelle Saint Luc;;10000;France email;internet:olivier.boissard@cerene.fr tel;work:03.25.74.11.78 tel;fax:03.25.78.39.67 version:2.1 end:vcard

view thread (12+ messages)  latest in thread

Message-ID: <4589046D.60603@cerene.fr>
Permalink:  ../4589046D.60603@cerene.fr/
Also on:    postgresql.org/message-id/4589046D.60603@cerene.fr

 · 

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: olivier.boissard@cerene.fr, revoohc@gmail.com, arnaulist@andromeiberica.com
  Subject: Re: Suggestions needed about how to dump/restore a database
  In-Reply-To: <4589046D.60603@cerene.fr>
  References: <45881D1A.6090904@andromeiberica.com> <1d219a6f0612191344x2f772a7el8ef9117a057c9cd8@mail.gmail.com> <4589046D.60603@cerene.fr>

* 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