pgsql: Improve style of some replication-related error messages. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve style of some replication-related error messages.
Date
Msg-id E1lRgXh-0003J1-8W@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6197db5340b8154adce1c6d07f6d3325547429c1

Modified Files
--------------
src/backend/commands/subscriptioncmds.c     | 13 +++++--------
src/backend/replication/logical/tablesync.c |  8 ++++----
2 files changed, 9 insertions(+), 12 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Fix some libpq_pipeline test problems
Next
From: Stephen Frost
Date:
Subject: pgsql: Add a docs section for obsoleted and renamed functions and setti