pgsql: Fix some BufFileRead() error reporting

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix some BufFileRead() error reporting
Дата
Msg-id E1pHLU9-003vjt-5F@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix some BufFileRead() error reporting

Remove "%m" from error messages where errno would be bogus.  Add short
read byte counts where appropriate.

This is equivalent to what was done in
7897e3bb902c557412645b82120f4d95f7474906, but some code was apparently
developed concurrently to that and not updated accordingly.

Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f3501945-c591-8cc3-5ef0-b72a2e0eaa9c@enterprisedb.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f463335e1f29b8f5b47d8b606d10cdf76817970f

Modified Files
--------------
src/backend/replication/backup_manifest.c |  3 ++-
src/backend/replication/logical/worker.c  | 33 ++++++++++++++++++-------------
2 files changed, 21 insertions(+), 15 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Refactor code in charge of running shell-based recovery commands
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add BufFileRead variants with short read and EOF detection