pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Factor out system call names from error messages
2+ messages / 1 participants
[nested] [flat]

* pgsql: Factor out system call names from error messages
@ 2021-04-23 12:36  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2021-04-23 12:36 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Factor out system call names from error messages
@ 2021-05-03 05:36  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2021-05-03 05:36 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Factor out system call names from error messages

One more that ought to have been part of
82c3cd974131d7fa1cfcd07cebfb04fffe26ee35.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/853c8c75571558f4b474eeac3ef9e6fcf9be62ba

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-05-03 05:36 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 12:36 pgsql: Factor out system call names from error messages Peter Eisentraut <peter@eisentraut.org>
2021-05-03 05:36 pgsql: Factor out system call names from error messages Peter Eisentraut <peter@eisentraut.org>

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