mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-29 20:39:09 -07:00
Include materialized views for ALL_IN_SCHEMA (#50957)
This commit is contained in:
parent
9566708473
commit
28dcfa985f
1 changed files with 1 additions and 1 deletions
|
@ -372,7 +372,7 @@ class Connection(object):
|
||||||
query = """SELECT relname
|
query = """SELECT relname
|
||||||
FROM pg_catalog.pg_class c
|
FROM pg_catalog.pg_class c
|
||||||
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
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,))
|
self.cursor.execute(query, (schema,))
|
||||||
return [t[0] for t in self.cursor.fetchall()]
|
return [t[0] for t in self.cursor.fetchall()]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue