Thread: pgsql: Fix overflow in extract(epoch from interval) for intervals

pgsql: Fix overflow in extract(epoch from interval) for intervals

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Fix overflow in extract(epoch from interval) for intervals exceeding 68 years.
Seems to have been introduced in 8.1 by careless SECS_PER_DAY
search-and-replace.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        timestamp.c (r1.157.2.1 -> r1.157.2.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/timestamp.c?r1=1.157.2.1&r2=1.157.2.2)