Skip to content

Commit

Permalink
Fix segfault while restarting postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
munakoiso committed Oct 27, 2020
1 parent a5c95af commit 5538768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logerrors.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ logerrors_emit_log_hook(ErrorData *edata)
Oid user_oid;
Oid db_oid;
/* Only if hashtable already inited */
if (global_variables != NULL && MyProc != NULL && !proc_exit_inprogress) {
if (global_variables != NULL && MyProc != NULL && !proc_exit_inprogress && !got_sigterm) {
for (lvl_i = 0; lvl_i < message_types_count; ++lvl_i)
{
/* Only current message type */
Expand Down

0 comments on commit 5538768

Please sign in to comment.