Connect to PostgreSQL as postgres
Connects to a PostgreSQL database using the psql interactive terminal. The -U flag specifies the role; PostgreSQL uses peer auth for local connections by default.
When you need this: When you need to run SQL queries, inspect tables, or troubleshoot database issues.
Variables
Command
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.