Excellent article on how to extract almost any piece of metadata from PostgreSQL: Extracting META information from PostgreSQL
Excellent article on how to extract almost any piece of metadata from PostgreSQL: Extracting META information from PostgreSQL