Newer versions: (from 8.4 - mentioned in release notes)

TABLE mytablename;

Longer but works on all versions:

SELECT * FROM mytablename;

You may wish to use \x first if it's a wide table, for readability.

For long data:

SELECT * FROM mytable LIMIT 10;

or similar.

For wide data (big rows), in the psql command line client, it's useful to use \x to show the rows in key/value form instead of tabulated, e.g.

 \x
SELECT * FROM mytable LIMIT 10;

Note that in all cases the semicolon at the end is important.

Answer from Craig Ringer on Stack Overflow
๐ŸŒ
Neon
neon.com โ€บ postgresql โ€บ administration โ€บ show-tables
PostgreSQL Show Tables
Unfortunately, PostgreSQL does not support the SHOW TABLES statement directly but provides you with alternatives. First, open the Command Prompt on Windows or Terminal on Unix-like systems and connect to the PostgreSQL using psql client tool:
Discussions

show tables in current database using psql
Maybe those tables aren't in the search path? You can use \dn to show all schemas (=namespaces). Then you can e.g. use \dt some_schema.* to show the tables in one specific schema. More on reddit.com
๐ŸŒ r/PostgreSQL
7
1
June 15, 2024
postgresql - How do I list all databases and tables using psql? - Database Administrators Stack Exchange
When I log in with psql --username=postgres, how do I list all databases and tables? I have tried \d, d and dS+ but nothing is listed. I have created two databases and a few tables with pgAdmin III... More on dba.stackexchange.com
๐ŸŒ dba.stackexchange.com
database - List all entries in a PostgreSQL datatable - Stack Overflow
While using the psql in the command line, how do I view all entries in a datatable? The database name is newproject. newproject=# I have tried \l (but this list all the databases) I am trying to... More on stackoverflow.com
๐ŸŒ stackoverflow.com
database - How to show tables in PostgreSQL? - Stack Overflow
When I ran psql without a database name, I got a "No relations found" message 2013-11-19T15:01:30.833Z+00:00 ... Without system tables: SELECT * FROM pg_catalog.pg_tables WHERE schemaname != 'pg_catalog' AND schemaname != 'information_schema' 2014-07-06T00:36:18.673Z+00:00 ... To remember this, think \dt == Display Tables. 2017-03-21T19:08:40.6Z+00:00 ... Save this answer. ... Show ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
RisingWave
risingwave.com โ€บ home โ€บ blog โ€บ how to show tables in postgresql: a complete guide
How to Show Tables in PostgreSQL: A Complete Guide | RisingWave
July 2, 2024 - By executing this command, users can quickly gain an overview of the existing tables and their names. Another fundamental command within psql is d, which offers a more comprehensive view beyond just tables. When executed, this command displays not only tables but also views, sequences, roles, and other essential objects within the database.
๐ŸŒ
Sentry
sentry.io โ€บ sentry answers โ€บ postgres โ€บ how to show tables in postgresql?
How to show tables in PostgreSQL? | Sentry
The command below assumes your username is postgres and logs into the db database directly: ... You can also use the command \d in psql, instead of \dt, to show all tables, views, sequences, roles, and other database objects.
๐ŸŒ
Beekeeper Studio
beekeeperstudio.io โ€บ blog โ€บ psql-show-tables
How to Show Tables in PostgreSQL Using psql | Beekeeper Studio
August 25, 2024 - Listing tables in PostgreSQL using psql is straightforward with multiple methods available depending on your needs. The \dt command is the quickest, while querying the information_schema or pg_tables offers more control and flexibility.
๐ŸŒ
Medium
medium.com โ€บ the-table-sql-and-devtalk โ€บ how-to-show-tables-in-postgresql-two-simple-methods-d4cafec0fc67
Show Tables in PostgreSQL | The Table โ€” Databases and SQL
October 23, 2025 - Use \\dt in psql or a query on information_schema.tables instead. No, these commands only show metadata. Use SELECT * FROM table_name; to view table contents.
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ postgresql โ€บ postgresql-show-tables
PostgreSQL - Show Tables - GeeksforGeeks
July 15, 2025 - The psql shell commands such as \dt provide a simple and quick way to list tables, while querying pg_catalog and information_schema offer more advanced options for filtering and joining metadata.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ postgresql-show-table
PostgreSQL Show Table - javatpoint
PostgreSQL Show Table with examples database, table, create, select, insert, update, delete, join, function, index, clause, trigger, view, procedure etc.
๐ŸŒ
CommandPrompt Inc.
commandprompt.com โ€บ education โ€บ how-to-show-tables-in-postgresql
How to Show Tables in PostgreSQL? โ€” CommandPrompt Inc.
September 1, 2022 - To see the available tables/relations within the example database, execute the โ€œ\dtโ€ command as follows: ... The output shows that there are total โ€œ18โ€ tables in the โ€œexampleโ€ database.
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to show data in a table by using psql command line - YouTube
Please do like share and comment if you like the video please do hit like and if you have any query please write it comment box How to show data in a table b...
Published ย  December 17, 2022
๐ŸŒ
Neon
neon.com โ€บ postgresql โ€บ postgresql-administration โ€บ postgresql-describe-table
PostgreSQL DESCRIBE TABLE
First, connect to the PostgreSQL ... change the current database to dvdrental sample database: ... Third, execute the \d table_name to or \d+ table_name to show the structure of a table....
๐ŸŒ
CommandPrompt Inc.
commandprompt.com โ€บ education โ€บ how-to-query-data-from-a-specific-table-in-postgresql
How to Query Data From a Specific Table in PostgreSQL โ€” CommandPrompt Inc.
May 1, 2023 - To query data from a PostgreSQL table, open SQL Shell, and execute the โ€œSELECT *โ€ command followed by the table name.
Call ย  +1-503-667-4564
Address ย  2950 Newmarket ST STE 101 - 231, 98226, Bellingham
๐ŸŒ
CYBERTEC PostgreSQL
cybertec-postgresql.com โ€บ home โ€บ show tables in postgresql: what's wrong with it?
SHOW TABLES in PostgreSQL: what's wrong with it? | CYBERTEC PostgreSQL | Services & Support
March 5, 2024 - If you're using the native command-line psql tool, you will have built-in commands; otherwise, you need to query system tables and/or views. If you're using a GUI application, then you probably don't have this problem. Every known GUI application with PostgreSQL support allows you to list, filter, and find any objects. In case you were wondering how to compare the content of two PostgreSQL tables, see Hans' post about creating checksums for tables.
๐ŸŒ
DbSchema
dbschema.com โ€บ blog โ€บ postgresql โ€บ show tables in postgresql โ€“ psql, sql queries, and schema filters | dbschema
Show Tables in PostgreSQL โ€“ psql, SQL Queries, and Schema Filters | DbSchema
April 14, 2020 - If you come from MySQL, one of the first PostgreSQL differences you notice is that there is no SHOW TABLES; SQL statement. In PostgreSQL, you usually list tables with psql meta-commands such as \dt, or with SQL queries against information_schema and pg_catalog.
๐ŸŒ
PostgreSQL
postgresql.org โ€บ docs โ€บ 9.1 โ€บ tutorial-select.html
PostgreSQL: Documentation: 9.1: Querying a Table
April 10, 2021 - An SQL SELECT statement is used to do this. The statement is divided into a select list (the part that lists the columns to be returned), a table list (the part that lists the tables from which to retrieve the data), and an optional qualification ...