diff --git a/lib/ansible/modules/database/postgresql/postgresql_privs.py b/lib/ansible/modules/database/postgresql/postgresql_privs.py index ba1f1585ba6..fb7b049004e 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_privs.py +++ b/lib/ansible/modules/database/postgresql/postgresql_privs.py @@ -372,7 +372,7 @@ class Connection(object): query = """SELECT relname FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace - WHERE nspname = %s AND relkind in ('r', 'v')""" + WHERE nspname = %s AND relkind in ('r', 'v', 'm')""" self.cursor.execute(query, (schema,)) return [t[0] for t in self.cursor.fetchall()]