Re: Oddity with extract microseconds?

Поиск
Список
Период
Сортировка
От Harald Fuchs
Тема Re: Oddity with extract microseconds?
Дата
Msg-id 87bqztxnum.fsf@srv.protecting.net
обсуждение исходный текст
Ответ на Re: Oddity with extract microseconds?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
In article <439650F1.4050901@familyhealth.com.au>,
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:

mysql> SELECT EXTRACT(MICROSECOND FROM '2003-01-02 10:30:01.00123');
>> +-------------------------------------------------------+
>> | EXTRACT(MICROSECOND FROM '2003-01-02 10:30:01.00123') |
>> +-------------------------------------------------------+
>> |                                                  1230 |
>> +-------------------------------------------------------+
>> 1 row in set (0.00 sec)
>> Does contrary behavior from MySQL count as evidence that PostgreSQL's
>> behavior is correct? :-)

> No...I happen to think that their way is more consistent though.  Pity
> it's not in the spec.

I'd say the comparison with MySQL is useless because MySQL is unable
to store microseconds in a DATETIME or TIMESTAMP column, although you
can extract microseconds from a date/time literal.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "J. Andrew Rogers"
Дата:
Сообщение: Re: Replication on the backend
Следующее
От: "J. Andrew Rogers"
Дата:
Сообщение: Re: Replication on the backend