Re: possible time change issue - known problem?
От
Dan Langille
Тема
Re: possible time change issue - known problem?
Дата
Msg-id
3E916055.7888.A995D50@localhost
Ответ на
Список
Дерево обсуждения
possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? Martijn van Oosterhout <kleptog@svana.org>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? Tom Lane <tgl@sss.pgh.pa.us>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? Tom Lane <tgl@sss.pgh.pa.us>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? Tom Lane <tgl@sss.pgh.pa.us>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? Tom Lane <tgl@sss.pgh.pa.us>
Re: possible time change issue - known problem? Patrick Welche <prlw1@newn.cam.ac.uk>
Re: possible time change issue - known problem? Patrick Welche <prlw1@newn.cam.ac.uk>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? "Dan Langille" <dan@langille.org>
Re: possible time change issue - known problem? Dennis Gearon <gearond@cvc.net>
On 7 Apr 2003 at 10:32, Tom Lane wrote: > "Dan Langille" writes: > > Yes, as hinted in the message subject. Hmmm, so that's how it's > > doing the math. I would think '24 hours' would give a different > > answer to '1 day' since '1 day' is not necessarily == '24 hours'. > > Type INTERVAL knows about months and seconds, nothing else. I've > opined in the past that it should be months, days, and seconds, > but no one seems excited enough about the issue to do the nontrivial > work involved ... I forgot to ask: Does this explain why the problem occurs under 7.2.3 but not 7.3.2? Is the Right Thing To Do(tm) this: select current_date, current_date-1; instead of this: select current_date, (current_date - interval '1 day')::date; Thanks. -- Dan Langille : http://www.langille.org/
В списке pgsql-general по дате отправления