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

fix: psql utility #1340

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fnacarellidev
Copy link

As reported to @samwillis through electrify discord I discovered a problem with electric-sql psql utility that, if you didn't start the proxy with electric-sql start --with-postgres the electric-sql psql utility would fail to connect to the database. This PR adds a fallback that forces runs the connection using the host machine, still need to check if the host machine has psql installed to perform the connection, but I tested like this and it worked just fine. Before actually making that check I want to see the opinion of the owners of the project about this solution.

this seems to solve the problem where electric-sql psql doesn't connect successfully to the proxy url when it is not started via --with-postgres
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 this pull request may close these issues.

None yet

1 participant