Listing all tables in postgresql

After listing all the databases, if we require a list of all tables that are present in database, we may use it as :

data1=# \dt
          List of relations
 Schema |   Name   | Type  |  Owner
--------+----------+-------+----------
 public | customer | table | postgres
(1 row)


data1=#
Share

You may also like...