From 28dcfa985fd3a2fa3bea71d078e73926a2fcd59d Mon Sep 17 00:00:00 2001 From: Arbaz Date: Thu, 7 Feb 2019 13:38:28 -0800 Subject: [PATCH] Include materialized views for ALL_IN_SCHEMA (#50957) --- lib/ansible/modules/database/postgresql/postgresql_privs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/database/postgresql/postgresql_privs.py b/lib/ansible/modules/database/postgresql/postgresql_privs.py index ba1f1585ba..fb7b049004 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()]