Factor out system call names from error messages
Peter Eisentraut <peter@eisentraut.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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/pqcomm.c | modified | +24 −22 |
| src/backend/postmaster/pgstat.c | modified | +2 −2 |
| src/backend/storage/ipc/latch.c | modified | +10 −15 |
| src/bin/pg_basebackup/pg_recvlogical.c | modified | +1 −1 |
| src/bin/pg_basebackup/receivelog.c | modified | +1 −1 |
| src/bin/pg_dump/parallel.c | modified | +3 −3 |
| src/bin/pg_upgrade/parallel.c | modified | +1 −1 |
| src/common/exec.c | modified | +1 −1 |
| src/interfaces/libpq/fe-connect.c | modified | +10 −5 |
| src/interfaces/libpq/fe-misc.c | modified | +2 −1 |
Discussion
- convert elog(LOG) calls to ereport 9 messages · 2020-12-02 → 2021-04-23