postgresql - Postgres Tutorial: pg_restore: [archiver] input file does not appear to be a valid archive -


i'm working through postgres dvd tutorial , running issues importing sample database.

running pg_restore -u postgres -d dvdrental ~[filepath]/dvd-database.tar.gz gives me pg_restore: [archiver] input file not appear valid archive.

my process far has been following:

  1. download dvdrental.zip file
  2. extract .tar using tar czf dvd-database.tar.gz dvdrental.zip (i've tried extracting zip folder first same result, dropping .gz)
  3. running pg_restore -u postgres -d dvdrental ~[filepath]/dvd-database.tar stated above.

i'm using postgres 9.5, may causing issue. looking answer points out i'm going wrong in process or how update archive of postgres database 9.5.

per comments above, solution simple.

extracting dvdrental.zip file uncompressed .tar not necessary suggested in tutorial instructions. pg_restore will work if pointed directory database dump been extracted.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -