Skip to content

Quit postgres if we cannot open connection to motherduck#622

Closed
mkaruza wants to merge 1 commit intomainfrom
precheck-md-token
Closed

Quit postgres if we cannot open connection to motherduck#622
mkaruza wants to merge 1 commit intomainfrom
precheck-md-token

Conversation

@mkaruza
Copy link
Copy Markdown
Contributor

@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