Re: Oddity with extract microseconds? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Oddity with extract microseconds?
Date
Msg-id 4748.1133888594@sss.pgh.pa.us
Whole thread Raw
In response to Re: Oddity with extract microseconds?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Oddity with extract microseconds?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> OK, AndrewSN just pointed out that it's "documented" to work like that...
> ...still seems bizarre...

It seems reasonably consistent to me.  extract() doesn't consider
seconds and fractional seconds to be distinct fields: it's all one
value.  The milliseconds and microseconds options just shift the
decimal place for you.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Oddity with extract microseconds?
Next
From: Bruce Momjian
Date:
Subject: Re: Oddity with extract microseconds?