pgsql: Fix portability issues in recently added make_timestamp/make_int

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix portability issues in recently added make_timestamp/make_int
Date: 2014-03-05 21:42:25
Message-ID: E1WLJa5-00073f-S0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix portability issues in recently added make_timestamp/make_interval code.

Explicitly reject infinity/NaN inputs, rather than just assuming that
something else will do it for us. Per buildfarm.

While at it, make some over-parenthesized and under-legible code
more readable.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f1ba94bcd9717b94b36868d6905547e313f3a359

Modified Files
--------------
src/backend/utils/adt/timestamp.c | 32 ++++++++++++++++++++------------
1 file changed, 20 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-03-05 23:16:02 pgsql: pg_dump: make argument combination error exit code consistent
Previous Message Tom Lane 2014-03-05 21:00:40 pgsql: Add comment that ec_relids excludes "child" EquivalenceClass mem