Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 103EB1337BF2 for ; Thu, 5 May 2011 12:05:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 12732-01-6 for ; Thu, 5 May 2011 15:05:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id B98AE1337C1F for ; Thu, 5 May 2011 12:04:42 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p45F4fDl053602 for ; Thu, 5 May 2011 15:04:41 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p45F4ffd053601; Thu, 5 May 2011 15:04:41 GMT (envelope-from www) Date: Thu, 5 May 2011 15:04:41 GMT Message-Id: <201105051504.p45F4ffd053601@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6008: Can't contact Tom Lane :) From: "gab" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201105/26 X-Sequence-Number: 30165 The following bug has been logged online: Bug reference: 6008 Logged by: gab Email address: korsani@free.fr PostgreSQL version: 8.4.8 Operating system: FreeBSD Description: Can't contact Tom Lane :) Details: I opened a bug (#6007), that was handled by Tom Lane. He wrote me a mail, but when I answer the mail come back to me ("Returned to sender") I write here my response : ------------->8-------------- Hi, Here : http://www.postgresql.org/docs/8.4/static/app-pgrestore.html You can read : -C --create Create the database before restoring into it. (When this option is used, the database named with -d is used only to issue the initial CREATE DATABASE command. All data is restored into the database name that appears in the archive.) -d dbname --dbname=dbname Connect to database dbname and restore directly into the database. Although "All data is restored into the database name that appears in the archive" is unclear, as when dumping with "pg_dump -F c" the dump does not contain the database name ... ----- "Tom Lane" a écrit : > "gab" 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