psql print table code example
Example 1: show table postgres command
PostgreSQL show tables command
\dt
Example 2: show details of table postgres
postgres=# \d tablename;
Example 3: show create table in postgresql
pg_dump -t 'schema-name.table-name' --schema-only database-name