[postgis-users] linux command to list tables in a postgresql database

0 views
Skip to first unread message

Shreerang Patwardhan

unread,
Mar 26, 2010, 10:57:55 PM3/26/10
to PostGIS Users Discussion
Hey all,
    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.

Thanx,
Shreerang Patwardhan.

Guillaume Lelarge

unread,
Mar 26, 2010, 11:21:07 PM3/26/10
to PostGIS Users Discussion
Shreerang Patwardhan a écrit :

psql -c "\dt" your_database


--
Guillaume.
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Shreerang Patwardhan

unread,
Mar 27, 2010, 4:34:36 AM3/27/10
to PostGIS Users Discussion
Thanx Guillaume. Just what I wanted...
Reply all
Reply to author
Forward
0 new messages