> 1. list all the available tables in the database> 2. Show the structure of the chosen table.
You might want to inspect the code for psql to see how this is done."\d" and "\d tablename" seem to do what you want.
- Thomas