Re: Restoring 8.0 db to 8.1 - Mailing list pgsql-general

From Tom Lane
Subject Re: Restoring 8.0 db to 8.1
Date
Msg-id 6192.1198255150@sss.pgh.pa.us
Whole thread Raw
In response to Restoring 8.0 db to 8.1  ("beer@cmu.edu" <beer@cmu.edu>)
List pgsql-general
"beer@cmu.edu" <beer@cmu.edu> writes:
> The problem with pg_restore is that our database takes 3+ weeks to restore
> from a dump file.  This is not an acceptable window for us.  ( Approximately
> 3 days of this is data + lobs, and the rest indexes and constraints. If we
> are doing something wrong here, I am all ears as well )

Uh, how big is that database exactly?

One question is, if migration is so painful, why are you updating to a
branch that is already obsolete?  At this point you should be skipping
8.1.x and going directly to 8.2.x; or maybe planning to wait a few more
weeks and go to 8.3.x.  I say this not just on general principles, but
mindful of the fact that there were some pretty significant improvements
in sorting speed in 8.2, which would translate directly to shorter btree
index build times.  (Are all your indexes btrees?)

Also, are you following the guidelines at
http://developer.postgresql.org/pgdocs/postgres/populate.html#POPULATE-PG-DUMP
?

            regards, tom lane

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Restoring 8.0 db to 8.1
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Machine spec 64-bit/32 GB RAM