Execute a .sql file against a PostgreSQL database

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

Authored by: pmverma
Brought to you by Warp, a free terminal reimagined to work like a modern app.
user_name
database_name
file_name

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