PostgreSQL: List Tables using PSQL

PostgreSQL: List Tables using PSQL

novicetechie

When working in the PostgreSQL interactive terminal (psql), you can list tables quickly using built-in commands.

List All Tables


\dt

This shows all tables in the current database schema. You can also filter by pattern:


\dt public.*

Use:

  • \l — show all databases
  • \c dbname — connect to database
  • \dt — list tables

These commands are handy shortcuts in the PostgreSQL CLI. :contentReference[oaicite:3]{index=3}

Comments

Simple Tech Tips for Everyday Users

Learn easy tech solutions, beginner-friendly tutorials, and simple fixes for your phone, laptop, apps, and internet problems — all in one place.

Explore by Category

About NoviceTechie

NoviceTechie.com is your simple tech helper. We provide beginner-friendly tutorials, how-to guides, and easy troubleshooting tips to make technology easier for everyone — no technical knowledge required.

Latest Posts

Get Simple Tech Tips Weekly

Join our free updates (optional).

Follow Us
NoviceTechie.com — Simple tech tutorials, everyday problem fixes, and easy guides for beginners.