pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove dead code in pg_dump. 3+ messages / 1 participants [nested] [flat]
* pgsql: Remove dead code in pg_dump. @ 2016-01-17 16:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-01-17 16:39 UTC (permalink / raw) To: pgsql-committers Remove dead code in pg_dump. Coverity quite reasonably complained that this check for fout==NULL occurred after we'd already dereferenced fout. However, the check is just dead code since there is no code path by which CreateArchive can return a null pointer. Errors such as can't-open-that-file are reported down inside CreateArchive, and control doesn't return. So let's silence the warning by removing the dead code, rather than continuing to pretend it does something. Coverity didn't complain about this before 5b5fea2a1, so back-patch to 9.5 like that patch. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/57ce9acc04483df4913921d4ff21f01483583fb8 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 3 --- 1 file changed, 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Remove dead code in pg_dump. @ 2016-01-17 16:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-01-17 16:39 UTC (permalink / raw) To: pgsql-committers Remove dead code in pg_dump. Coverity quite reasonably complained that this check for fout==NULL occurred after we'd already dereferenced fout. However, the check is just dead code since there is no code path by which CreateArchive can return a null pointer. Errors such as can't-open-that-file are reported down inside CreateArchive, and control doesn't return. So let's silence the warning by removing the dead code, rather than continuing to pretend it does something. Coverity didn't complain about this before 5b5fea2a1, so back-patch to 9.5 like that patch. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6b3b3a502e5d96cd992470bd408dd7457139caf0 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 3 --- 1 file changed, 3 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Remove dead code in pg_dump. @ 2016-10-13 20:08 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-10-13 20:08 UTC (permalink / raw) To: pgsql-committers Remove dead code in pg_dump. I'm not sure if this provision for "pg_backup" behaving a bit differently from "pg_dump" ever did anything useful in a released version. But it's definitely dead code now. Michael Paquier Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/c08521eb55135c493cee23541c233870cdff14b7 Modified Files -------------- src/bin/pg_dump/pg_dump.c | 4 ---- 1 file changed, 4 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-10-13 20:08 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-01-17 16:39 pgsql: Remove dead code in pg_dump. Tom Lane <tgl@sss.pgh.pa.us> 2016-01-17 16:39 pgsql: Remove dead code in pg_dump. Tom Lane <tgl@sss.pgh.pa.us> 2016-10-13 20:08 pgsql: Remove dead code in pg_dump. 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