aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2022-08-11 14:12:11 -0400
committerRobert Haas <rhaas@postgresql.org>2022-08-11 14:12:11 -0400
commit34dffa0224bd34e0fa27b464f1821c9c43f07703 (patch)
tree83cbaa55717758571e26eac2df1cf951a62d4958 /src
parent2c860777656ab34ba0cec8f780ee26e31187dd0c (diff)
downloadpostgresql-34dffa0224bd34e0fa27b464f1821c9c43f07703.tar.gz
postgresql-34dffa0224bd34e0fa27b464f1821c9c43f07703.zip
Fix non-specific error message.
"something has gone wrong" is not helpful. Make this elog() consistent with the other one in the same function. Discussion: http://postgr.es/m/CA+Tgmoa_AZ2jUWSA_noiqOqnxBaWDR+t3bHjSygZi6+wqDBCXQ@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/auxprocess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/auxprocess.c b/src/backend/postmaster/auxprocess.c
index 39ac4490db1..7765d1c83dd 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;
}