[PLUG] psql command eqivalent to \dt to list tables in a postgresql database

Shridhar Daithankar ghodechhap at ghodechhap.net
Sat Mar 27 19:29:06 IST 2010

On Saturday 27 March 2010 08:20:00 Shreerang Patwardhan wrote:
>     I am using PostgreSQL database. I have a few tables in my database. I
> wish to list all of them but not through the psql prompt. I want to list
> them through the terminal. \dt is used to list the tables from the psql
> prompt. Is there any equivalent command? Like psql -l is used to list all
> the databases from the terminal.

psql -c "\\dt"

More information about the Plug-mail mailing list