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

Probe different credentials to list databases #740

Open
tbussmann opened this issue Nov 29, 2023 · 2 comments
Open

Probe different credentials to list databases #740

tbussmann opened this issue Nov 29, 2023 · 2 comments

Comments

@tbussmann
Copy link
Member

Currently, Postgres.app does try to connect to the selected server to show its databases. This is done on the configured port using a unix domain socket connection with the username of the logged in user to a database named accordingly (default connection credentials).

We could extend this to try different common combinations like postgres / postgres or $USER / postgres and with a TCP connection in case the default way fails.

@jakob
Copy link
Member

jakob commented Nov 29, 2023

I've added a fallback to use postgres / postgres in 0eaceed.

This should cover the use case when creating the $USER database fails, or when $USER is deleted

@jakob
Copy link
Member

jakob commented Nov 29, 2023

A potential drawback of the fallback is that databases might show up in Postgres.app, but double clicking them would lead to an error message.

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

No branches or pull requests

2 participants