pg_restore error - Mailing list pgsql-novice

From Curtis Mortensen
Subject pg_restore error
Date
Msg-id CPECIDGAKENJOOCGOHGJIEOACBAA.shakiro2@yahoo.com
Whole thread Raw
Responses Re: pg_restore error  (Giles Lean <giles@nemeton.com.au>)
List pgsql-novice
I've tried searching the archives for a solution to this, but I was unable
to find it.  So, I hope you'll forgive my newbie question if it's been asked
before.  I'm trying to backup a database on our company's server.  First I
create the backup (pg_dump [databasename] > backup.dump) then I create a new
database [databasename2].  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

I get the same even if I give the absolute path for backup.dump.  I assume
that postgres is looking somewhere else for my file, but being fairly new to
SQL, I don't know where that is or where to find out.  So, any help or hints
you could give me would be appreciated.

Thanks,

Curtis Mortensen


pgsql-novice by date:

Previous
From: Josh Berkus
Date:
Subject: Re: References on arrays
Next
From: Giles Lean
Date:
Subject: Re: Unix domain sockets