Restoring from SQL dump - Mailing list pgsql-novice

From Erin Jonaitis
Subject Restoring from SQL dump
Date
Msg-id 00ab01cecc09$fc2e0750$f48a15f0$@wisc.edu
Whole thread Raw
Responses Re: Restoring from SQL dump  (Payal Singh <payal@omniti.com>)
Re: Restoring from SQL dump  (David Johnston <polobo@yahoo.com>)
Re: Restoring from SQL dump  (Ken Benson <ken@infowerks.com>)
List pgsql-novice

Hello!

I am trying to restore data from an SQL dump. I am using Windows 7, PostgreSQL version 9.3, pgAdmin III 1.18.0.

 

Here is what I did.

 

1)      I used the pgAdmin III interface to create a new database.

2)      I selected this db in the console and selected Plugins > PSQL console.

3)      Now I have a psql window open with the following prompt:
dbname=#

4)      I tried typing the following:
psql –f M:\LongitudinalDB\backups\2013.10.02\uw.sql
and got the following error:
Invalid command \LongitudinalDB. Try \? For help.

5)      OK, so maybe the backslashes are the problem. I then tried
psql –f M:/LongitudinalDB/backups/2013.10.02/uw.sql
and got no error.

6)      However, none of the data or tables appeared in the db – it looks just as it did as a fresh db.

7)      I tried a few other things in the psql window, deliberately typing nonsense. No error messages then, either, just a fresh prompt.

 

Advice would be much appreciated.

 

Thanks,
Erin

pgsql-novice by date:

Previous
From: David Johnston
Date:
Subject: Re: error: there is no parameter $1
Next
From: Payal Singh
Date:
Subject: Re: Restoring from SQL dump