pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Factor out system call names from error messages
Date: Fri, 23 Apr 2021 12:36:51 +0000
Message-ID: <E1lZv3D-0003yF-UC@gemulon.postgresql.org> (raw)

Factor out system call names from error messages

Instead, put them in via a format placeholder.  This reduces the
number of distinct translatable messages and also reduces the chances
of typos during translation.  We already did this for the system call
arguments in a number of cases, so this is just the same thing taken a
bit further.

Discussion: https://www.postgresql.org/message-id/flat/92d6f545-5102-65d8-3c87-489f71ea0a37%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/82c3cd974131d7fa1cfcd07cebfb04fffe26ee35

Modified Files
--------------
src/backend/libpq/pqcomm.c             | 46 ++++++++++++++++++----------------
src/backend/postmaster/pgstat.c        |  4 +--
src/backend/storage/ipc/latch.c        | 25 ++++++++----------
src/bin/pg_basebackup/pg_recvlogical.c |  2 +-
src/bin/pg_basebackup/receivelog.c     |  2 +-
src/bin/pg_dump/parallel.c             |  6 ++---
src/bin/pg_upgrade/parallel.c          |  2 +-
src/common/exec.c                      |  2 +-
src/interfaces/libpq/fe-connect.c      | 15 +++++++----
src/interfaces/libpq/fe-misc.c         |  3 ++-
10 files changed, 55 insertions(+), 52 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1lZv3D-0003yF-UC@gemulon.postgresql.org>
Permalink:  ../E1lZv3D-0003yF-UC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lZv3D-0003yF-UC@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Factor out system call names from error messages
  In-Reply-To: <E1lZv3D-0003yF-UC@gemulon.postgresql.org>
  References: <E1lZv3D-0003yF-UC@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox