From 63293e004b54fccc647f429528ca4e96d62ad819 Mon Sep 17 00:00:00 2001 From: Raymond Roelands Date: Thu, 28 Mar 2019 15:34:24 +0100 Subject: [PATCH] Include partioned tables (#54517) Include partioned tables in ALL_IN_SCHEMA list. --- 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 80630c18564..c9b83270fc6 100644 --- a/lib/ansible/modules/database/postgresql/postgresql_privs.py +++ b/lib/ansible/modules/database/postgresql/postgresql_privs.py @@ -460,7 +460,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', 'm')""" + WHERE nspname = %s AND relkind in ('r', 'v', 'm', 'p')""" self.cursor.execute(query, (schema,)) return [t[0] for t in self.cursor.fetchall()]