1

I'm trying to restore a dump done with pg_dumpall > mybak.sql from a server that has 1 table in a different tablespace that the default one.

On the target machine I have recreated the directory structure of the tablespace and it is owned by the postgres user with read/write permissions but still the restore is failing. Any suggestions?

command used to restore is:

psql mydb -f mybak.sql

Thanks

2
  • 3
    I see that you managed to solve the problem, but when having errors and asking about them, it is always advisable to post the actual error message, too. Jan 27, 2014 at 9:14
  • 2
    Yep, always include PostgreSQL version (select version()) and exact text of any error message. Jan 27, 2014 at 9:23

1 Answer 1

1

Got it,

had to recreate the tablespace manually on target before restoring the dump.

Thanks anyway

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.