From baae4d715fd7cb439db8c53d201d4b83feff66b1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 7 Jul 2024 18:57:11 +0200 Subject: [PATCH] refactor: Remove redundant conditions in schema cache Those conditions are covered by the respective nspname = ANY branches. --- src/PostgREST/SchemaCache.hs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/PostgREST/SchemaCache.hs b/src/PostgREST/SchemaCache.hs index 6c0c7441b..0d38c2cba 100644 --- a/src/PostgREST/SchemaCache.hs +++ b/src/PostgREST/SchemaCache.hs @@ -491,7 +491,6 @@ accessibleTables = FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN ('v','r','m','f','p') - AND n.nspname NOT IN ('pg_catalog', 'information_schema') AND n.nspname = ANY($$1) AND ( pg_has_role(c.relowner, 'USAGE') @@ -703,7 +702,6 @@ tablesSqlQuery = JOIN pg_namespace n ON n.oid = t.typnamespace GROUP BY s,n ) AS enum_info ON info.udt_name = enum_info.n - WHERE info.table_schema NOT IN ('pg_catalog', 'information_schema') GROUP BY info.table_schema, info.table_name ), tbl_constraints AS (