-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgres system tables simulation #22
Comments
Ah, great question. So many of the The problem, of course, is that it doesn't support all of them, and even to the extent that it does, there are conceptual gaps that are hard to get around (e.g., what roles should DuckDB have?) I don't think I (or DuckDB) can reasonably implement every thing that every BI/DB query tool needs to work with postgres in all of it's glory and complexity. On the other hand, I do think it might be possible to fill out the Presto/Trino protocol stuff (in https://github.com/jwills/buenavista/tree/main/buenavista/http ) to the point where I could (at least for any tool that knows how to talk to Presto/Trino, which isn't everything but is a lot of things) primarily b/c both the protocol and the metadata catalog are so much simpler. I've been working on some other things (https://github.com/jwills/dbt-duckdb alone keeps me reasonably busy), but when I have some more free time I would like to explore making the http protocol into a first-class thing. |
Trino protocol might have similar challenge as the JDBC driver relies on views in |
yeah exactly, it wasn't too-too hard to write them: https://github.com/jwills/buenavista/blob/main/buenavista/examples/duckdb_http.py |
@jwills I think I am observing a smilar issue when trying to use datagrip from Jetbrains - the raw SQL can be executed but DataGrip will not recognize the schema and offer any UI assistance - in fact it only recognizes an unnamed empty schema - even though duckdb itself will not show it |
@jwills I tried https://github.com/jwills/buenavista/blob/main/buenavista/examples/duckdb_http.py but do not understand how to set it up to retrieve JDBC compliant connections |
Hey @geoHeil for the |
What is the level of Postgres emulation that Buena Vista aims for?
For example, if I do
\d
in psql to get list of tables, I get following error:That is because the
pg_
tables don't exist. DBeaver for example is broken when browsing the database as well, since it relies on them being there:Would it make sense to add simulation of those tables into Buena Vista or is it out of scope and only the wire protocol is the point?
The text was updated successfully, but these errors were encountered: