I am trying to open a SQL Script of PostgreSQL (.sql file) that contains the Create Database and INSERT statements but when I try to restore the database using PgAdmin 4 it gives me error stating "pg_restore: [archiver] input file does not appear to be a valid archive" . I selected the following fields in the Restore Database dialog box:
Format - as Custom or tar
Filename - C:\Users\parwa\Desktop\DWBI\Assignment - 2(Chinook SQL - 2)\Question Content\Chinook_PostgreSql.sql
Number of Jobs - (left this field blank)
Role name - Postgres
I am not sure why it's giving me this error. Any help regarding this will be greatly appreciated. Thanks!