pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6008: Can't contact Tom Lane :)
2+ messages / 2 participants
[nested] [flat]

* BUG #6008: Can't contact Tom Lane :)
@ 2011-05-05 15:04 gab <korsani@free.fr>
  2011-05-05 15:54 ` Re: BUG #6008: Can't contact Tom Lane :) Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: gab @ 2011-05-05 15:04 UTC (permalink / raw)
  To: pgsql-bugs


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" <tgl@sss.pgh.pa.us> a écrit :

> "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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6008: Can't contact Tom Lane :)
  2011-05-05 15:04 BUG #6008: Can't contact Tom Lane :) gab <korsani@free.fr>
@ 2011-05-05 15:54 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2011-05-05 15:54 UTC (permalink / raw)
  To: gab <korsani@free.fr>; +Cc: pgsql-bugs

"gab" <korsani@free.fr> writes:
> 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 ...

Don't know where you got that idea from ... "pg_restore -l" prints the
source database name in two different places for me.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-05-05 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-05-05 15:04 BUG #6008: Can't contact Tom Lane :) gab <korsani@free.fr>
2011-05-05 15:54 ` Tom Lane <tgl@sss.pgh.pa.us>

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