Psql
Import CSV Into Postgres
How to import data from a CSV file into a PostgreSQL table
SQL
How To Run a SQL File With psql
Importing a SQL file into a PostgreSQL database with psql