Improve style of some replication-related error messages.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 31 Mar 2021 19:25:53 +0000 (15:25 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 31 Mar 2021 19:25:53 +0000 (15:25 -0400)
commit6197db5340b8154adce1c6d07f6d3325547429c1
tree56ace98b58720de30c2a9040d01f1a13f85a4f72
parentdb973ffb3ca43e65a0bf15175a35184a53bf977d
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
src/backend/commands/subscriptioncmds.c
src/backend/replication/logical/tablesync.c