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

What kind of client authentication when connecting to a local instance? #2040

Open
Seddryck opened this issue Nov 3, 2023 · 7 comments
Open
Labels
question ❔ Community and user questions

Comments

@Seddryck
Copy link

Seddryck commented Nov 3, 2023

I'm a bit struggling to connect to a local instance of GlareDB. I'm successful with psql but not with the Npgsql data provider in .NET. Could you confirm if the client authentication is Trust Authentication?

@Seddryck Seddryck added the question ❔ Community and user questions label Nov 3, 2023
@Seddryck Seddryck changed the title What kind of authentication when connecting to a local instance? What kind of client authentication when connecting to a local instance? Nov 3, 2023
@64J0
Copy link

64J0 commented Aug 16, 2024

I'm also having trouble using npgsql!

It does not work with dbeaver too.

But it works with psql.

@talagluck
Copy link
Contributor

Thanks for opening this issue @Seddryck and thanks for adding, @64J0!

We don't recommend the local server use-case for anything aside from testing, really, and we haven't tested it much with other tools.

@64J0, are your issues with npgsql and dbeaver for the local server, or for GlareDB Cloud? What errors are you getting?

@64J0
Copy link

64J0 commented Aug 21, 2024

@64J0, are your issues with npgsql and dbeaver for the local server, or for GlareDB Cloud? What errors are you getting?

For the local server. It's related to the protocol these tools use. I did open an issue at the npgsql repo as well -> npgsql/npgsql#5809.

@talagluck
Copy link
Contributor

talagluck commented Aug 29, 2024

Thanks for the update, @64J0!

We're currently working on the connection to dbeaver. The error I'm hitting:

SQL Error [XX000]: ERROR: Error during planning: Invalid function 'format_type'.
Did you mean 'flatten'?

has to do with a Postgres function which hasn't yet been implemented in GlareDB, and so we're working on implementing that now. This is connecting to GlareDB Cloud, rather than the local postgres server.

Could you please share the error you're getting as well as how you're specifying your config?

I'd also love to know more about how you're using the local server - it's not something we really document, and it would be great to understand what need it's meeting.

@Seddryck
Copy link
Author

Regarding the use case for the local server instance, I'm trying to use it for some integration tests in our CI/CD pipelines. We don't want these pipelines to rely on remote (especially web) resources.

@talagluck
Copy link
Contributor

Thanks for the follow up, @Seddryck! Has this been blocking your usage of GlareDB?

@talagluck
Copy link
Contributor

I wanted to follow up with our progress here. We have a PR open to implement the function which unblocks the first bug we were hitting (the unimplemented format_type function). The issue is that we're still hitting a second error here due to the connection query generated by DBeaver, and the way that DataFusion handles columns in joins with the same name; it won't be possible for us to resolve this directly.

However, we're in the process of building a new execution engine, which we're planning on merging into this repo in the next month or two. Once we have that, we should be able to bypass this issue entirely.

Thanks for your patience, and please let me know if there's anything else we can do to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ❔ Community and user questions
Projects
None yet
Development

No branches or pull requests

3 participants