Skip to content

Commit fcf907a

Browse files
committed
fix(postgres): ignore when hstore cannot be loaded because the database has not registered it yet
1 parent 4b71d90 commit fcf907a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ibis/backends/postgres/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,11 @@ def raw_sql(self, query: str | sg.Expression, **kwargs: Any) -> Any:
717717
psycopg.types.TypeInfo.fetch(con, "hstore"),
718718
cursor,
719719
)
720-
except (psycopg.InternalError, psycopg.ProgrammingError, TypeError):
720+
except (psycopg.InternalError, psycopg.ProgrammingError):
721721
cursor.close()
722722
raise
723+
except TypeError:
724+
pass
723725

724726
try:
725727
cursor.execute(query, **kwargs)

0 commit comments

Comments
 (0)