]> granicus.if.org Git - postgresql/commit
Add error handling for failing fstat() calls in copy.c.
authorAndres Freund <andres@anarazel.de>
Sun, 4 Jan 2015 15:47:23 +0000 (16:47 +0100)
committerAndres Freund <andres@anarazel.de>
Sun, 4 Jan 2015 15:47:23 +0000 (16:47 +0100)
commit2ea95959afa225118374ab1691a5ccf84ae05ce8
treee4ebce46fdfd6fd6669ca237554b3491ad9cbef4
parent8cadeb792cd08478a73cb0941bb67f03e8465090
Add error handling for failing fstat() calls in copy.c.

These calls are pretty much guaranteed not to fail unless something
has gone horribly wrong, and even in that case we'd just error out a
short time later.  But since several code checkers complain about the
missing check it seems worthwile to fix it nonetheless.

Pointed out by Coverity.
src/backend/commands/copy.c