Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit551c07d

Browse files
committed
Make error handling of synchronous_standby_names consistent.
It's not a good idea to kill the postmaster just because someone muffsthis, and it's not consistent with what we do for other, similar GUCs.Fujii Masao, with a bit more hacking by me
1 parent2e019c8 commit551c07d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/backend/replication/syncrep.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,7 @@ SyncRepGetStandbyPriority(void)
420420
/* syntax error in list */
421421
pfree(rawstring);
422422
list_free(elemlist);
423-
ereport(FATAL,
424-
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
425-
errmsg("invalid list syntax for parameter \"synchronous_standby_names\"")));
423+
/* GUC machinery will have already complained - no need to do again */
426424
return0;
427425
}
428426

@@ -563,7 +561,7 @@ assign_synchronous_standby_names(const char *newval, bool doit, GucSource source
563561
/* syntax error in list */
564562
pfree(rawstring);
565563
list_free(elemlist);
566-
ereport(FATAL,
564+
ereport(GUC_complaint_elevel(source),
567565
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
568566
errmsg("invalid list syntax for parameter \"synchronous_standby_names\"")));
569567
returnNULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp