Re: pg_restore - added documentation - Mailing list pgsql-patches

From Tom Lane
Subject Re: pg_restore - added documentation
Date
Msg-id 14394.1097678232@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_restore - added documentation  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Peter Eisentraut <peter_e@gmx.net> writes:
> Bruce Momjian wrote:
>> However, I wonder if "output database" is the proper name for -d?
>> Isn't it more "restore database" or "target database"?

> "restore database name" sounds like, "When this option is specified,
> only the database name is restored.".  "target database" sounds a lot
> better.

-d really only specifies the database to which pg_restore initially
connects.  If you've requested a CREATE DATABASE command be issued (-C
I think) then the actual restore will happen into that database.

            regards, tom lane

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_restore - added documentation
Next
From: Tom Lane
Date:
Subject: Re: pg_restore - added documentation