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_2_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        timestamp.c (r1.169 -> r1.169.2.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/timestamp.c?r1=1.169&r2=1.169.2.1)