Re: Oddity with extract microseconds?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Oddity with extract microseconds?
Дата
Msg-id 43963E42.8010408@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Oddity with extract microseconds?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Oddity with extract microseconds?
Re: Oddity with extract microseconds?
Список pgsql-hackers
>>Why aren't 'minutes' considered too?  Because they aren't 'seconds'. 
>>Well, seconds aren't microseconds either.
> 
> Yeah, they are: it's just one field.  The other way of looking at it
> (that everything is seconds) is served by "extract(epoch)".

Well, it's different in MySQL unfortunately - what does the standard 
say?  Out of interest, can someone try this for me in MySQL 5:

SELECT EXTRACT (MICROSECOND FROM '2003-01-02 10:30:00.00123');
SELECT EXTRACT (MICROSECOND FROM '2003-01-02 10:30:10.00123');

Chris



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Concurrent CREATE INDEX, try 2 (was Re: Reducing relation locking overhead)
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Optimizer oddness, possibly compounded in 8.1