Thread: pgsql/src/backend parser/scan.l nodes/read.c u ...

pgsql/src/backend parser/scan.l nodes/read.c u ...

From
Tom Lane
Date:
CVSROOT:    /home/projects/pgsql/cvsroot
Module name:    pgsql
Changes by:    tgl@hub.org    01/03/22 12:41:47

Modified files:
    src/backend/parser: scan.l
    src/backend/nodes: read.c
    src/backend/utils/misc: guc.c

Log message:
    Fix Joubert's complaint that int8-sized numeric literals are mishandled
    on Alpha (because parser mistakenly assumes that a nonoverflow result
    from strtol means the value will fit into int4).  A scan for other uses
    of strtol and strtoul found a couple other places with the same mistake;
    fix them too.  The changes are all conditional on HAVE_LONG_INT_64 to
    avoid complaints from compilers that think x != x is a silly test
    (cf. pg_atoi).