diff --git a/visidata/loaders/postgres.py b/visidata/loaders/postgres.py index 9a8e777d8..15e12fda6 100644 --- a/visidata/loaders/postgres.py +++ b/visidata/loaders/postgres.py @@ -125,7 +125,7 @@ def reload(self): if self.options.postgres_schema: source = f'"{self.options.postgres_schema}"."{self.source}"' else: - source = self.source + source = f'"{self.source}"' with self.sql.cur(f"SELECT * FROM {source}") as cur: self.rows = [] r = cur.fetchone()