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

(DBeaver): Failed connection: Error during planning: Unable to fetch table provider for 'pg_catalog.pg_type' #1450

Open
greyscaled opened this issue Aug 1, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@greyscaled
Copy link
Contributor

Context

If I try to connect to my GlareDB cloud-hosted db with DBeaver, it gives two options:

  • Host
  • URL
  1. If I try Host with org_name as a subdomain, I get:

FATAL: cloud auth: missing org ID: pass it as an option, or subdomain in proxy or in database as '/'
FATAL: cloud auth: missing org ID: pass it as an option, or subdomain in proxy or in database as '/'

  1. If I try Host with org_id as a subdomain, I get:

To me, this indidcates a "successful" connection, minus support for pg_type

ERROR: Error during planning: Unable to fetch table provider for 'pg_catalog.pg_type': Failed to dispatch to table: Missing catalog entry; schema: pg_catalog, name: pg_type
ERROR: Error during planning: Unable to fetch table provider for 'pg_catalog.pg_type': Failed to dispatch to table: Missing catalog entry; schema: pg_catalog, name: pg_type
ERROR: Invalid number of values provided. Expected: 0, got: 1

I get this same response if I set --options in their UI

  1. If I try <org_name>/<db_name>, I get:

(under-the-hood, it uses JDBC, and it invalidates URLs that we understand):

Unable to parse URL jdbc:postgresql://proxy.qa.glaredb.com:6543/grey_new/grey_new_db
Unable to parse URL jdbc:postgresql://proxy.qa.glaredb.com:6543/grey_new/grey_new_db

I get a very similar error if I try <org_id>/<db_name>, I get:

Expected

I'm able to connect to GlareDB with DBeaver. It's worth noting JDBC doesn't play nicely with some of our formats, but there are always workarounds. However, given how frequently I've run into this, we may want to consider how we present connection strings down the line.

Actual

I cannot successfully hookup GlareDB isntance with DBeaver

Impact

@greyscaled greyscaled added the bug Something isn't working label Aug 1, 2023
@greyscaled
Copy link
Contributor Author

Very similar class of bug to #1445

@YuriyGavrilov
Copy link

+1

universalmind303 added a commit that referenced this issue Jan 16, 2024
closes #747
closes #2390

Note, I don't think this quite yet closes the other [connector
issues](https://github.com/GlareDB/glaredb/issues?q=is%3Aissue+is%3Aopen+pg_type).
Many of them rely on transactions to work properly (such as
#1450)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants