Skip to content
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

Database connection error in dbeaver #29

Closed
e20999 opened this issue Apr 6, 2024 · 6 comments · Fixed by #42
Closed

Database connection error in dbeaver #29

e20999 opened this issue Apr 6, 2024 · 6 comments · Fixed by #42

Comments

@e20999
Copy link

e20999 commented Apr 6, 2024

When I create a new database connection in dbeaver, I receive an error message:
(base) C:\Users\thinkpad>python -m buenavista.examples.duckdb_postgres D:\abc.db
Using DuckDB database at D:\abc.db
Listening on 0.0.0.0:5433
Catalog Error: Type with name REGCLASS does not exist!
Did you mean "real"?
Catalog Error: Table Function with name pg_get_keywords does not exist!
Did you mean "main.duckdb_keywords"?
LINE 1: SELECT GROUP_CONCAT(word, ',') FROM pg_catalog.PG_GET_KEYWORDS() WHERE word...
^
Catalog Error: Type with name REGCLASS does not exist!
Did you mean "real"?
微信截图_20240406102116
Please explain why this is and how it needs to be resolved? Thank you.

@Mause
Copy link
Contributor

Mause commented Apr 6, 2024

This sounds like an issue in Buenavista, not DuckDB

@jwills
Copy link
Owner

jwills commented Apr 6, 2024

Indeed it's an issue with Buenavista-- we hack some of the postgres catalog to make it work with DuckDB, but there is still plenty of stuff that different clients want that is missing-- e.g., the regclass types. I unfortunately do not have time right now to add it in, so I'm just going to post a note that Buena Vista can be used with e.g. psql and leave it at that.

@e20999
Copy link
Author

e20999 commented Apr 10, 2024

How can I establish a connection correctly in dbeaver now?

@e20999
Copy link
Author

e20999 commented Apr 10, 2024

Using navicat also fails to connect properly, with the following error prompt:
Binder Error: Referenced column "datlastsysoid" not found in FROM clause!
Candidate bindings: "pg_database.oid"
LINE 1: SELECT DISTINCT datlastsysoid FROM pg_database
^
Binder Error: Referenced column "datlastsysoid" not found in FROM clause!
Candidate bindings: "pg_database.oid"
LINE 1: SELECT DISTINCT datlastsysoid FROM pg_database

@e20999
Copy link
Author

e20999 commented Apr 10, 2024

This sounds like an issue in Buenavista, not DuckDB

yes,thank you

@rzykov
Copy link

rzykov commented Apr 27, 2024

@e20999 d99f8fc
fix that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants