From: Tom Lane <tgl@sss.pgh.pa.us>
To: gab <korsani@free.fr>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6007: pg_restore -C -d <database> does not behave as expected when dump is done with pg_dump
Date: Thu, 05 May 2011 10:34:36 -0400
Message-ID: <3223.1304606076@sss.pgh.pa.us> (raw)
In-Reply-To: <201105051335.p45DZUIe006513@wwwmaster.postgresql.org>
References: <201105051335.p45DZUIe006513@wwwmaster.postgresql.org>
"gab" <korsani@free.fr> writes:
> Try to restore it using :
> pg_restore -C -d test /tmp/plop
> pg_restore: [archiver (db)] connection to database "test" failed: FATAL:
> database "test" does not exist
> But the doc says that -C use the parameter of -d to CREATE the database ...
Well, if the docs say that they shouldn't. When you use -C, the
database named by -d is just the one where pg_restore initially connects
to issue the CREATE DATABASE command. Please specify where you think
the documentation is telling you something else.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, korsani@free.fr
Subject: Re: BUG #6007: pg_restore -C -d <database> does not behave as expected when dump is done with pg_dump
In-Reply-To: <3223.1304606076@sss.pgh.pa.us>
References: <201105051335.p45DZUIe006513@wwwmaster.postgresql.org> <3223.1304606076@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox