pgsql: Factor out system call names from error messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Factor out system call names from error messages
Дата
Msg-id E1lZv3D-0003yF-UC@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Mark multirange_constructor0() and multirange_constructor2() str
Следующее
От: Peter Geoghegan
Дата:
Сообщение: pgsql: amcheck: MAXALIGN() nbtree special area offset.