pgsql: Fix erroneous error reports in snapbuild.c.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix erroneous error reports in snapbuild.c.
Дата
Msg-id E1gtRJl-0002zI-N5@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix erroneous error reports in snapbuild.c.

It's pretty unhelpful to report the wrong file name in a complaint
about syscall failure, but SnapBuildSerialize managed to do that twice
in a span of 50 lines.  Also fix half a dozen missing or poorly-chosen
errcode assignments; that's mostly cosmetic, but still wrong.

Noted while studying recent failures on buildfarm member nightjar.
I'm not sure whether those reports are actually giving the wrong
filename, because there are two places here with identically
spelled error messages.  The other one is specifically coded not
to report ENOENT, but if it's this one, how could we be getting
ENOENT from open() with O_CREAT?  Need to sit back and await results.

However, these ereports are clearly broken from birth, so back-patch.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2a0edae47af453ef27ef7ff013beb7201f8549d8

Modified Files
--------------
src/backend/replication/logical/snapbuild.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix description of WAL record XLOG_PARAMETER_CHANGE
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Use Getopt::Long for catalog scripts