>> 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:
Thank you. I will try to find mapped results for pg_depend.
> begin;
> drop table some_table restrict;
> ... note what it complains about ...
> rollback;
No... to find all views(not in schema1) depend on any schema1.objects.