The command `\dt public.*` is executed in a **PostgreSQL** database...

July 3, 2025 at 09:09 PM

\dt public.*

The command \dt public.* is executed in a PostgreSQL database using the psql interactive terminal. Here's what it does:

  • \dt: Lists all tables for the current database.
  • public.*: Filters the list of tables to only include those in the public schema.

In summary:

This command lists all the tables that exist in the public schema of the connected PostgreSQL database.

Generate your own explanations
Download our vscode extension
Read other generated explanations

Built by @thebuilderjr
Sponsored by beam analytics
Read our terms and privacy policy
Forked from openai-quickstart-node