From: Giles Lean <giles@nemeton.com.au>
To: Curtis Mortensen <shakiro2@yahoo.com>
Cc: pgsql-novice@postgresql.org
Subject: Re: pg_restore error
Date: Sat, 07 Sep 2002 08:50:11 +1000
Message-ID: <12768.1031352611@nemeton.com.au> (raw)
In-Reply-To: <shakiro2@yahoo.com> <CPECIDGAKENJOOCGOHGJIEOACBAA.shakiro2@yahoo.com>
Curtis Mortensen asked:
> When I try to move the dump to the new database
> (pg_restore [databasenam2] < backup.dump) it gives me this error:
>
> pg_restore: [archiver] could not open input file: No such file or directory
To specify the database name to restore to, you want the --dbname option:
$ pg_restore --dbname=databasenam2 < backup.dump
Regards,
Giles
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 using the --to and --cc options:
reply via email
To: pgsql-novice@postgresql.org
Cc: giles@nemeton.com.au, shakiro2@yahoo.com
Subject: Re: pg_restore error
In-Reply-To: <12768.1031352611@nemeton.com.au>
* 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