Is there a postgres command to list/drop all materialized views?

Pure SQL Show all: SELECT oid::regclass::text FROM pg_class WHERE relkind = ‘m’; Names are automatically double-quoted and schema-qualified where needed according to your current search_path in the cast from regclass to text. In the system catalog pg_class materialized views are tagged with relkind = ‘m’. The manual: m = materialized view To drop all, you … Read more