Re: TRUNCATE+COPY optimization and --jobs=1 in pg_restore
Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
From: Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@postgresql.org
Date: 2010-02-10T04:24:55Z
Lists: pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> wrote: > Takahiro-san is suggesting there is a case for doing the optimisation in > non-parallel mode. But if we do that, is there still a case for > --single-transaction? I think --single-transaction is useful to restore data into non-empty databases. A normal restore ignores errors, but it might make database inconsistent state. So, we'd better keep --single-transaction option to support all-or-nothing restore. Regards, --- Takahiro Itagaki NTT Open Source Software Center