diff --git a/buenavista/backends/duckdb.py b/buenavista/backends/duckdb.py index 4951ff7..b59d9ba 100644 --- a/buenavista/backends/duckdb.py +++ b/buenavista/backends/duckdb.py @@ -179,6 +179,10 @@ def rewrite_sql(self, sql: str) -> str: return sql.replace("pg_catalog.current_schemas", "current_schemas") elif "pg_catalog.generate_series" in sql: return sql.replace("pg_catalog.generate_series", "generate_series") + elif "pg_catalog.PG_GET_USERBYID" in sql: + # allow psql's \d to work + # just display the owner's oid + return sql.replace("pg_catalog.PG_GET_USERBYID", "") return sql def in_transaction(self) -> bool: