Factor out system call names from error messages
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 23 Apr 2021 12:18:11 +0000 (14:18 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 23 Apr 2021 12:21:37 +0000 (14:21 +0200)
commit82c3cd974131d7fa1cfcd07cebfb04fffe26ee35
tree5e165fd8be0892ede2d4591ad32b559794fce887
parent9486844f301e265a3ad11b612decaba2462c3c15
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
src/backend/libpq/pqcomm.c
src/backend/postmaster/pgstat.c
src/backend/storage/ipc/latch.c
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_dump/parallel.c
src/bin/pg_upgrade/parallel.c
src/common/exec.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-misc.c