DEV Community

Cover image for How to show PostgreSQL databases using psql and GUI tools
Jamey Barton
Jamey Barton

Posted on

How to show PostgreSQL databases using psql and GUI tools

When working with multiple PostgreSQL databases at the same time, it is essential to know how to list them. It can be necessary when you are getting familiar with a new environment or performing server maintenance.

This article, provide you with an illustrated guide on how to show databases in PostgreSQL, filter them, and order them according to certain criteria. You'll find out about:

  • How to show databases from the command line
  • What is the basic syntax
  • How to filter the database list
  • How to sort the database list
  • What permissions are required to get the list of databases
  • How to get and manage a database list with a PostgreSQL GUI tool

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay