0

I am trying to restore a database from file. Here is my file http://pastebin.com/JSmG0Htm I am running

 psql db_name < path_to_file

and here is error message http://pastebin.com/cqDYxUUM What is the problem . ??? Thanks

2 Answers 2

2

You need to restore dumps made that way with pg_restore, not psql.

Sign up to request clarification or add additional context in comments.

2 Comments

I tried to make it from phpPgAdmin (not manually ) but I got the same errors . I assume the way of executing the statement does not matter
I don't know what statement you're talking about. The dump you've provided cannot be restored with psql -- you must use pg_restore, which is a different program.
0

Use command as this.

psql -f path_to_file db_name

It should work

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.