Re: Oddity with extract microseconds?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Oddity with extract microseconds?
Дата
Msg-id 4748.1133888594@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Oddity with extract microseconds?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: Oddity with extract microseconds?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Oddity with extract microseconds?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Oddity with extract microseconds?