possible bug on age() function (8.2.4 , 8.3.6)

Поиск
Список
Период
Сортировка
От Philippe Amelant
Тема possible bug on age() function (8.2.4 , 8.3.6)
Дата
Msg-id 1245775762.6161.26.camel@philippe-desktop
обсуждение исходный текст
Ответы Re: possible bug on age() function (8.2.4 , 8.3.6)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi all,

here is a little test case for a problem we run into in our
developpement

Is it a bug or a setting problem ?

try
select (current_timestamp),(current_timestamp - interval '1008 hours');

report this value in age()

select age('2009-06-23 18:36:05.064066+02' ,'"2009-05-12 18:36:05.064066
+02"');

then use all in this :

SELECT EXTRACT(EPOCH FROM TIMESTAMP  '2009-06-23 18:36:05.064066+02') -
EXTRACT(EPOCH FROM TIMESTAMP '"2009-05-12 18:36:05.064066+02"'),
EXTRACT(EPOCH FROM interval '1 mon 11 days');


Can I workaround this ?


Regards


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

Предыдущее
От: "DaNieL..!"
Дата:
Сообщение: Re: Please suggest me on my table design (indexes!)
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Replication