Re: pg_dump restore as transaction?

From: Peter Billen <peter(at)clueless(dot)be>
To: Owen Hartnett <owen(at)clipboardinc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump restore as transaction?
Date: 2008-12-01 17:36:24
Message-ID: 20081201183624.xh0ae5ygxzwg04go@webmail.clueless.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Quoting Owen Hartnett <owen(at)clipboardinc(dot)com>:

>
> If my perusal of the sql generated by pg_dump is correct, then it
> doesn't appear that it's wrapped in a transaction, and thus might be
> able to only complete a partial restore?
>
> Or does
>
> psql myDatabase <mypg_dumpfile
>

Try to use pg_restore with the following option:

-1, --single-transaction
restore as a single transaction

Or psql with the following option:

-1 ("one") execute command file as a single transaction

Kind regards,

Peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-12-01 17:37:52 Re: pg_dump restore as transaction?
Previous Message Owen Hartnett 2008-12-01 17:29:58 pg_dump restore as transaction?