Skip to content

Commit 551c07d

Browse files
committed
Make error handling of synchronous_standby_names consistent.
It's not a good idea to kill the postmaster just because someone muffs this, and it's not consistent with what we do for other, similar GUCs. Fujii Masao, with a bit more hacking by me
1 parent 2e019c8 commit 551c07d

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
return 0;
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
return NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy