pgsql: Make more consistent some error messages for file-relatedoperat - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Make more consistent some error messages for file-relatedoperat
Date
Msg-id E1fhOae-0005GL-Na@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make more consistent some error messages for file-related operations

Some error messages which report something about a file operation use
as well context which is already provided within the path being worked
on, making things rather duplicated.  This creates more work for
translators, and does not actually bring clarity.

More could be done, however in a lot of cases the context used is
actually useful, still that patch gets down things with a good cut.

Author: Michael Paquier
Reviewed-by: Kyotaro Horiguchi, Tom Lane
Discussion: https://postgr.es/m/20180718044711.GA8565@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/56df07bb9e50a3ca4d148c537524f00bccc6650e

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 32 ++++++++++----------
src/backend/access/transam/xlog.c               | 39 ++++++++++++++-----------
src/bin/pg_basebackup/pg_recvlogical.c          |  2 +-
3 files changed, 39 insertions(+), 34 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.
Next
From: Michael Paquier
Date:
Subject: pgsql: Add proper errcodes to new error messages for read() failures