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

Guillaume Lelarge guillaume at lelarge.info
Fri Mar 26 20:21:07 PDT 2010


Shreerang Patwardhan a écrit :
> 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.
> 

psql -c "\dt" your_database


-- 
Guillaume.



More information about the postgis-users mailing list