Emi Lu <emilu(at)encs(dot)concordia(dot)ca> writes:
> Is there a simple way to query all views depend on a schema or table?
Well, you could build something that examines pg_depend, or you could
try this:
begin;
drop table some_table restrict;
... note what it complains about ...
rollback;
regards, tom lane