Can someone please explain how I can get the tables in the current database?
I am using postgresql-8.4 psycopg2.
If you use psql, you can type:
\d
http://www.postgresql.org/docs/9.1/static/app-psql.html
If you are running SQL, you can type:
SELECT * FROM tables;
http://www.postgresql.org/docs/current/interactive/information-schema.html
If you want statistics about their usage, you can type:
SELECT * FROM pg_stat_user_tables;
http://www.postgresql.org/docs/current/interactive/monitoring-stats.html