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