|
|
@ -460,7 +460,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', 'm')"""
|
|
|
|
WHERE nspname = %s AND relkind in ('r', 'v', 'm', 'p')"""
|
|
|
|
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()]
|
|
|
|
|
|
|
|
|
|
|
|