Re: fixes for date_part micro/millisecond precision

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Brent Verner <brent(at)rcfile(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: fixes for date_part micro/millisecond precision
Date: 2001-11-24 19:24:09
Message-ID: 29069.1006629849@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Brent Verner <brent(at)rcfile(dot)org> writes:
> This patch fixes a problem where extract/date_part returns bad values
> for microsecond and millisecond parts.

I'm not convinced the existing behavior is wrong. Timestamps are floats
in PG, and therefore not infinitely precise. Your patch seems to be
trying to cover this up, but I fear it will only succeed in introducing
other problems.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Brent Verner 2001-11-24 20:06:42 Re: fixes for date_part micro/millisecond precision
Previous Message Bruce Momjian 2001-11-24 19:07:00 Re: Chinese NLS patch, the third try.