Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c86077
)
Fix non-specific error message.
author
Robert Haas
<rhaas@postgresql.org>
Thu, 11 Aug 2022 18:12:11 +0000
(14:12 -0400)
committer
Robert Haas
<rhaas@postgresql.org>
Thu, 11 Aug 2022 18:12:11 +0000
(14:12 -0400)
"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
src/backend/postmaster/auxprocess.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/auxprocess.c
b/src/backend/postmaster/auxprocess.c
index 39ac4490db1badf5b2451db9b5b6b6d8480c422c..7765d1c83dda6563b27b1c20bf4eb5a0c24ac454 100644
(file)
--- 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;
}