List All PostgreSQL Databases

List all databases with their sizes and owners.

Lists all PostgreSQL databases, their owners, encoding, and size. Equivalent to SHOW DATABASES in MySQL. Run from the psql prompt with \l or via command line.

When you need this: When auditing databases on a server or finding the correct database name.

Command


        
9 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.