Commands.app

\c

psql Commands

Connect to a database in psql

Examples
Common usage examples

Connect to mydb database

\c mydb

Connect as different user

\c mydb myuser
Notes
  • Switches current database connection
Related Commands
You might also find these useful