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

Quit postgres if we cannot open connection to motherduck #622

Closed
wants to merge 1 commit into from

Conversation

mkaruza
Copy link
Collaborator

@mkaruza mkaruza commented Feb 24, 2025

If we cannot open connection to motherduck service we should probably exit postgres - i.e. if token is not valid.

If we cannot open connection to motherduck service we should probably
exit postgres - i.e. if token is not valid.
@wuputah wuputah requested a review from JelteF February 25, 2025 17:35
JelteF added a commit that referenced this pull request Feb 26, 2025
If you had an invalid MotherDuck token you would get into a crash-loop,
because the background worker would fail to connect and crash Postgres.

This fixes that by catching all exceptions thrown by C++ functions in
the background worker.

Resolves #622
@JelteF JelteF closed this in #630 Feb 26, 2025
@JelteF JelteF closed this in 77f1abf Feb 26, 2025
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.

1 participant