Skip site navigation (1) Skip section navigation (2)

pg_restore --single-transaction and --clean

From: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: pg_restore --single-transaction and --clean
Date: 2010-02-10 04:48:55
Message-ID: 20100210134854.4801.52131E4D@oss.ntt.co.jp (view raw or flat)
Thread:
Lists: pgsql-hackers
As another glitch in pg_restore, a combination of options
--single-transaction and --clean raises errors if we restore data
into an empty database. The reason is pg_restore uses DROP <OBJECT>.
The cleanup command fails if the target object doesn't exist.

Is it a TODO item to replace "DROP" into "DROP IF EXISTS"
for cleanup commands in pg_restore?

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center


Responses

pgsql-hackers by date

Next:From: Fujii MasaoDate: 2010-02-10 05:05:55
Subject: Re: [COMMITTERS] pgsql: Make standby server continuously retry restoring the next WAL
Previous:From: Takahiro ItagakiDate: 2010-02-10 04:24:55
Subject: Re: TRUNCATE+COPY optimization and --jobs=1 in pg_restore

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group