pgsql: Add error handling for failing fstat() calls in copy.c.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add error handling for failing fstat() calls in copy.c.
Date: 2015-01-04 15:56:03
Message-ID: E1Y7nX9-0000im-BP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2ea95959afa225118374ab1691a5ccf84ae05ce8

Modified Files
--------------
src/backend/commands/copy.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-01-04 19:08:02 pgsql: Fix thinko in lock mode enum
Previous Message Andres Freund 2015-01-04 15:10:15 pgsql: Correctly handle test durations of more than 2147s in pg_test_ti