Improve style of some replication-related error messages.
Tom Lane <tgl@sss.pgh.pa.us>
Improve style of some replication-related error messages. Put the remote end's error message into the primary error string, instead of relegating it to errdetail(). Although this could end up being awkward if the remote sends us a really long error message, it seems more in keeping with our message style guidelines, and more helpful in situations where the errdetail could get dropped. Peter Smith Discussion: https://postgr.es/m/CAHut+Ps-Qv2yQceCwobQDP0aJOkfDzRFrOaR6+2Op2K=WHGeWg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/subscriptioncmds.c | modified | +5 −8 |
| src/backend/replication/logical/tablesync.c | modified | +4 −4 |
Discussion
- Redundant errdetail prefix "The error was:" in some logical replication messages 5 messages · 2021-03-30 → 2021-03-31