Re: pgsql: Add comments about why errno is set to zero. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Add comments about why errno is set to zero.
Date
Msg-id 16974.1133470414@sss.pgh.pa.us
Whole thread Raw
In response to pgsql: Add comments about why errno is set to zero.  (momjian@postgresql.org (Bruce Momjian))
List pgsql-committers
momjian@postgresql.org (Bruce Momjian) writes:
> Log Message:
> -----------
> Add comments about why errno is set to zero.

These comments seem a bit wrongheaded, since "checking
LONG_MIN/LONG_MAX" is exactly not what we could do to detect an overflow
error.

            regards, tom lane

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Retry in FileRead and FileWrite if Windows returns
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Comment "errno = 0" in a more generic way.