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 issue #1141: immediately report FATAL and PANIC #1142

Merged
merged 1 commit into from
May 23, 2023
Merged

Conversation

eeeebbbbrrrr
Copy link
Contributor

@eeeebbbbrrrr eeeebbbbrrrr commented May 23, 2023

Errors reported at the FATAL or PANIC levels should immediately be reported to Postgres since they ultimately abort the transaction.

ERRORs continue to be converted into panics, and everything else is also immediately reported to Postgres but since they only emit messages, there's no change to flow control.

As a drive-by, I also added a few functions to the "bad_ideas" example to interactively test this change. It's not really feasible for the test suite to somehow test that a test causes the backend, or the entire cluster, to crash, which is what PANIC and FATAL do.

errors reported at the FATAL or PANIC levels should immediately be reported
to Postgres since they ultimately abort the transaction.

ERRORs continue to be converted into panics, and everything else is also
immediately reported to Postgres but since they only emit messages,
there's no change to flow control.
Copy link
Contributor

@thomcc thomcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these postgres will exit, so it's fine.

@eeeebbbbrrrr
Copy link
Contributor Author

Alrighty, thanks @thomcc. Gonna merge it.

@eeeebbbbrrrr eeeebbbbrrrr merged commit 81dcc93 into develop May 23, 2023
@eeeebbbbrrrr eeeebbbbrrrr deleted the issue-1141 branch June 20, 2023 17:59
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.

2 participants