Merge pull request #234 from capri1989/main-PG-427

DISTPG-427: replaced return with goto exit to not break other extensions
pull/252/head
Kai Wagner 2022-05-31 08:17:21 +02:00 committed by GitHub
commit cb454113b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3508,11 +3508,11 @@ pgsm_emit_log_hook(ErrorData *edata)
goto exit;
if (IsParallelWorker())
return;
goto exit;
/* Check if PostgreSQL has finished its own bootstraping code. */
if (MyProc == NULL)
return;
goto exit;
if ((edata->elevel == ERROR || edata->elevel == WARNING || edata->elevel == INFO || edata->elevel == DEBUG1))
{