I want to count the number of tables which is contained by a view.
In SQL Server I do it like this:
Declare v_tables int
SELECT v_Tables = Count(*)
FROM INFORMATION_SCHEMA.VIEW_TABLE_USAGE
WHERE View_Name = View1;
How about PostgreSQL 9.3 ?