back to notes

  • \list or \l: list all databases
  • \dt: list all tables in the current database

You will never see tables in other databases, these tables aren't visible. You have to connect to the correct database to see its tables (and other objects).

To switch databases:

\connect database_name

Source



last updated november 2016