Re: [GENERAL] pg_dump restore as transaction?

2008-12-01 Thread Owen Hartnett
At 12:37 PM -0500 12/1/08, Tom Lane wrote: Owen Hartnett <[EMAIL PROTECTED]> writes: 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? That's correct, and intentiona

Re: [GENERAL] pg_dump restore as transaction?

2008-12-01 Thread Peter Billen
Quoting Owen Hartnett <[EMAIL PROTECTED]>: 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 Try to use pg_restore with the following opti

Re: [GENERAL] pg_dump restore as transaction?

2008-12-01 Thread Alvaro Herrera
Owen Hartnett wrote: > 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? You're right, it is not. Try pg_restore --single-transaction. (You'll need pg_dump -Fc t

Re: [GENERAL] pg_dump restore as transaction?

2008-12-01 Thread Tom Lane
Owen Hartnett <[EMAIL PROTECTED]> writes: > 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? That's correct, and intentional. You can use pg_restore's -1 switch or

[GENERAL] pg_dump restore as transaction?

2008-12-01 Thread Owen Hartnett
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 If not, is there a reason why it can't be done so (some process that cannot be run as a tra