v2-0001-Be-more-specific-about-exactly-what-has-gone-wron.patch

application/octet-stream

Filename: v2-0001-Be-more-specific-about-exactly-what-has-gone-wron.patch
Type: application/octet-stream
Part: 0
Message: Re: something has gone wrong, but what is it?

Patch

Format: format-patch
Series: patch v2-0001
Subject: Be more specific about exactly what has gone wrong.
File+
src/backend/postmaster/auxprocess.c 1 1
From a8368568aadb067b5dee4a472b1adca4649d0703 Mon Sep 17 00:00:00 2001
From: Robert Haas <rhaas@postgresql.org>
Date: Wed, 10 Aug 2022 10:38:30 -0400
Subject: [PATCH v2] Be more specific about exactly what has gone wrong.

---
 src/backend/postmaster/auxprocess.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/postmaster/auxprocess.c b/src/backend/postmaster/auxprocess.c
index 39ac4490db..7765d1c83d 100644
--- a/src/backend/postmaster/auxprocess.c
+++ b/src/backend/postmaster/auxprocess.c
@@ -81,7 +81,7 @@ AuxiliaryProcessMain(AuxProcType auxtype)
 			MyBackendType = B_WAL_RECEIVER;
 			break;
 		default:
-			elog(ERROR, "something has gone wrong");
+			elog(PANIC, "unrecognized process type: %d", (int) MyAuxProcType);
 			MyBackendType = B_INVALID;
 	}
 
-- 
2.24.3 (Apple Git-128)