From 216bb5aab865375cc9017e56d85f4d124dab6813 Mon Sep 17 00:00:00 2001 From: Matthew Scheffel Date: Sun, 19 Nov 2023 20:55:28 -0400 Subject: [PATCH] [postgresql] quote schemaless table #2128 --- visidata/loaders/postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()