pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix erroneous error reports in snapbuild.c. 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix erroneous error reports in snapbuild.c. @ 2019-02-12 06:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-02-12 06:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/232a8e233f21eb9a214c551d5a6af3d324915b4e Modified Files -------------- src/backend/replication/logical/snapbuild.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix erroneous error reports in snapbuild.c. @ 2019-02-12 06:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-02-12 06:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a4c6a73aa438d6c44fbe1e5e0c8878051e8c2b54 Modified Files -------------- src/backend/replication/logical/snapbuild.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix erroneous error reports in snapbuild.c. @ 2019-02-12 06:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-02-12 06:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix erroneous error reports in snapbuild.c. @ 2019-02-12 06:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-02-12 06:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/30bce0df865f719be91d8a1405143b47c70a2b0a Modified Files -------------- src/backend/replication/logical/snapbuild.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix erroneous error reports in snapbuild.c. @ 2019-02-12 06:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-02-12 06:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/442d44fb480d1298a3ed47f869ad2c7fbfca53a7 Modified Files -------------- src/backend/replication/logical/snapbuild.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix erroneous error reports in snapbuild.c. @ 2019-02-12 06:13 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2019-02-12 06:13 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/42baa60f6bc70cfffcba6a89a4b7a8b0a929b54d Modified Files -------------- src/backend/replication/logical/snapbuild.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2019-02-12 06:13 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-02-12 06:13 pgsql: Fix erroneous error reports in snapbuild.c. Tom Lane <tgl@sss.pgh.pa.us> 2019-02-12 06:13 pgsql: Fix erroneous error reports in snapbuild.c. Tom Lane <tgl@sss.pgh.pa.us> 2019-02-12 06:13 pgsql: Fix erroneous error reports in snapbuild.c. Tom Lane <tgl@sss.pgh.pa.us> 2019-02-12 06:13 pgsql: Fix erroneous error reports in snapbuild.c. Tom Lane <tgl@sss.pgh.pa.us> 2019-02-12 06:13 pgsql: Fix erroneous error reports in snapbuild.c. Tom Lane <tgl@sss.pgh.pa.us> 2019-02-12 06:13 pgsql: Fix erroneous error reports in snapbuild.c. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox