1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-01 14:21:49 +03:00

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
This commit is contained in:
Robert Haas 2022-08-11 14:12:11 -04:00
parent 2c86077765
commit 34dffa0224

View File

@ -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;
}