Connection toolkitPostgreSQL
psql \conninfo
psql \conninfo
\l
View current connection details or list available databases.
Command
\conninfo
Example usage
Check which database you are attached to and enumerate all databases.
\conninfo
\l
Related tags
Connection toolkit\ldatabasesqlpsql