Re: Fastest way to restore a database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: William Garrison <postgres(at)mobydisk(dot)com>
Cc: Greg Smith <gsmith(at)gregsmith(dot)com>, Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Fastest way to restore a database
Date: 2008-09-12 19:07:07
Message-ID: 14884.1221246427@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

William Garrison <postgres(at)mobydisk(dot)com> writes:
> So... if I am using pg_dump and pg_restore with a compressed backup,
> then it is using COPY, correct? And I think that would follow a CREATE
> TABLE statement as mentioned in the first link... so no WAL files written?

Only if you use --single-transaction.

The worry expressed upthread about the transaction being "too large" is
unfounded, btw. Unlike some other DBs, PG doesn't have a finite-size
undo log.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2008-09-12 19:09:14 Re: Fastest way to restore a database
Previous Message William Garrison 2008-09-12 19:03:00 Re: Fastest way to restore a database