In PostgreSQL, is there a way to get all of the tables that a view/table depends on based on its use of foreign keys and access to a given table?
Basically, I want t
Assuming you have your foreign keys set up correctly, use pg_dump to dump the table definitions.
pg_dump
pg_dump -s -t TABLENAME