diff --git a/dbcat/catalog/db.py b/dbcat/catalog/db.py index e13b628..626f69d 100644 --- a/dbcat/catalog/db.py +++ b/dbcat/catalog/db.py @@ -277,7 +277,7 @@ def _create_postgres_extractor(source: CatSource) -> Tuple[Extractor, Any]: @staticmethod def _create_redshift_extractor(source: CatSource) -> Tuple[Extractor, Any]: where_clause_suffix = """ - WHERE SCHEMA NOT IN ('information_schema', 'pg_catalog') + SCHEMA NOT IN ('information_schema', 'pg_catalog') """ return DbScanner._create_sqlalchemy_extractor( source, where_clause_suffix, RedshiftMetadataExtractor