If you are installing PostgreSQL client programs, you can use "pg_restore" to convert the dump file to an SQL script without having to have a PostgreSQL instance. Just do pg_restore dumpfile.pg and it will return the SQL recovery file to standard output.
source share