Import Gunzip compressed file backup in Postgres PSQL


Here is quick to import gz database backup files in PostgreSQL

1
2
gunzip file.sql.gz
psql -U postgres dbnam < file.sql

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.