Re: [9.0beta5/cvs head] build failure due to unchecked results - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [9.0beta5/cvs head] build failure due to unchecked results
Date
Msg-id 26964.1272646281@sss.pgh.pa.us
Whole thread Raw
In response to Re: [9.0beta5/cvs head] build failure due to unchecked results  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [9.0beta5/cvs head] build failure due to unchecked results
List pgsql-bugs
Robert Haas <robertmhaas@gmail.com> writes:
> Still, I think we should consider applying the portion of
> the proposed patch that avoid relying on the contents of the fgets()
> buffer after fgets() returns NULL,

I concur, those two changes look worthwhile.  The proposed Assert()
additions are right out, though, as they would turn write failures
into database crashes.  The current code doesn't even think that such
a failure is worth testing for, so that's surely an overreaction.
(And in any case, if Asserts are disabled, this change would fail to
suppress the warning, no?)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5443: Undetected deadlock situation
Next
From: Claudio Freire
Date:
Subject: Re: BUG #5443: Undetected deadlock situation