Execute a .sql file against a PostgreSQL database

Runs .sql file against a Postgres database, while also handling authentication.

Authored by: pmverma
user_name
database_name
file_name

Command
Copy
psql -U user_name -d database_name -a -f file_name
Tags