Re: Restore time differences between full database dumps and separate schema/data dumps

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Glen Barber <glen(dot)j(dot)barber(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Restore time differences between full database dumps and separate schema/data dumps
Date: 2009-12-10 23:42:32
Message-ID: 1306.1260488552@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Glen Barber <glen(dot)j(dot)barber(at)gmail(dot)com> writes:
> When schema/data are separated, is the restore treated as INSERTs?

No, but you'll still get killed on performance by other factors,
particularly incremental index building and retail foreign key checks.
I recommend a close read of
http://www.postgresql.org/docs/8.4/static/populate.html

What you'll want to do is separate the load into three phases
corresponding to the order that a combined schema+data dump
does it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-12-10 23:58:07 Re: Postgres "locked up"
Previous Message Eric B. Ridge 2009-12-10 23:35:16 Re: Postgres "locked up"