I want to drop a group of tables from a lot of schemas. All the schemas that I want to drop tables starts name with "pm_". I would like to drop this group of tables from all schemas that starts with "pm_".
Something like that:
DROP TABLE IF EXISTS pm_%.tableName CASCADE;
(where % would be the name continuation).