]> granicus.if.org Git - postgresql/commit
Remove rangechecks on errno; just call strerror unconditionally. This
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Jan 2001 23:28:52 +0000 (23:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Jan 2001 23:28:52 +0000 (23:28 +0000)
commite9c936ff38da738d1fd68525eee9c7c1f0c558dc
tree0f20d770bb2d410b2f2fd360475b8690591d9e44
parent60b282fd260f4c7fa42af438a555b3df7dd7dd47
Remove rangechecks on errno; just call strerror unconditionally.  This
eliminates a raft of portability issues, including whether sys_nerr
exists, whether the platform has any valid negative errnos, etc.  The
downside is minimal: errno shouldn't ever contain an invalid value anyway,
and if it does, reasonably modern versions of strerror will not choke.
This rangecheck idea seemed good at the time, but it's clearly a net loss,
and I apologize to all concerned for having ever put it in.
config/c-library.m4
configure
configure.in
src/backend/utils/error/elog.c
src/backend/utils/error/exc.c
src/include/config.h.in