Introduction
psql helps you talk to your PostgreSQL database using simple commands. It lets you run queries and see results right away.
You want to quickly check data in your database without a fancy app.
You need to run SQL commands to create or change tables.
You want to test queries before adding them to your program.
You need to fix or update data directly in the database.
You want to learn SQL by trying commands interactively.