From 69feb5af0b55b809893ddbc26b91b173bd2fd5ba Mon Sep 17 00:00:00 2001 From: Robert Abraham Date: Fri, 23 Aug 2019 19:18:56 +0200 Subject: [PATCH] Only check public table space --- lib/PostgresTools/Database.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/PostgresTools/Database.pm b/lib/PostgresTools/Database.pm index c20bf6b..d37fd5f 100644 --- a/lib/PostgresTools/Database.pm +++ b/lib/PostgresTools/Database.pm @@ -55,9 +55,7 @@ sub _get_tables_sql { return qq( SELECT table_name, table_schema FROM information_schema.tables - WHERE table_schema != 'partitions' - AND table_schema != 'information_schema' - AND table_schema != 'pg_catalog' + WHERE table_schema = 'public' AND table_type != 'FOREIGN TABLE' ORDER BY table_schema, table_name; );