pgsql/ onfig/c-library.m4 /configure.in /confi ... - Mailing list pgsql-committers

From Tom Lane
Subject pgsql/ onfig/c-library.m4 /configure.in /confi ...
Date
Msg-id 200101222328.f0MNSrl34388@hub.org
Whole thread Raw
List pgsql-committers
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/01/22 18:28:53

Modified files:
    config         : c-library.m4
    .              : configure.in configure
    src/include    : config.h.in
    src/backend/utils/error: elog.c exc.c

Log message:
    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.


pgsql-committers by date:

Previous
From: Bruce Momjian - CVS
Date:
Subject: pgsql/src/backend/main main.c
Next
From: Bruce Momjian - CVS
Date:
Subject: pgsql/doc TODO