Re: [PATCHES] Interval month, week -> day

Поиск
Список
Период
Сортировка
Искать
От
Michael Glaesemann
Тема
Re: [PATCHES] Interval month, week -> day
Дата
Msg-id
9C3B1BEF-E5C6-48EE-A311-C967E2B5EA4E@seespotcode.net
Ответ на
Список
Дерево обсуждения
Re: [PATCHES] Interval month, week -> day Michael Glaesemann <grzm@seespotcode.net>
Re: [PATCHES] Interval month, week -> day Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Interval month, week -> day Michael Glaesemann <grzm@seespotcode.net>
Re: [PATCHES] Interval month, week -> day Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Interval month, week -> day Bruce Momjian <bruce@momjian.us>
Re: [PATCHES] Interval month, week -> day Michael Meskes <meskes@postgresql.org>
Re: [PATCHES] Interval month, week -> day Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Interval month, week -> day Bruce Momjian <bruce@momjian.us>
Re: [PATCHES] possible ecpg vpath build error Michael Glaesemann <grzm@seespotcode.net>
Re: [PATCHES] possible ecpg vpath build error Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] possible ecpg vpath build error Michael Meskes <meskes@postgresql.org>
Re: [PATCHES] possible ecpg vpath build error Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] possible ecpg vpath build error Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] possible ecpg vpath build error Michael Glaesemann <grzm@seespotcode.net>
Re: [PATCHES] Interval month, week -> day Andrew Dunstan <andrew@dunslane.net>

On Sep 1, 2006, at 9:32 , Tom Lane wrote:

> Michael Glaesemann  writes:
>> On Sep 1, 2006, at 9:12 , Tom Lane wrote:
>>> I agree that this seems like an oversight in the original
>>> months/days/seconds patch, rather than behavior we want to keep.
>>> But is DecodeInterval the only place with the problem?
>
>> I'll check on this tonight. Any idea where I might start to look?
>
> I'd look at the input routines for all the datetime types and see  
> where
> they go.  It's entirely possible that DecodeInterval is the only place
> with the problem, but I'd not assume that without looking.

AFAICS, DecodeInterval is the only place that needed changing. I've  
looked through datetime.c, timestamp.c, date.c, and nabstime.c, and  
don't see anything else. It makes sense, too, as the only place where  
you could have weeks or non-integer months is during Interval input  
or interval multiplication/division. The pg_tm struct, which is used  
in time(stamp)?(tz)?/interval arithmetic only has integral months and  
no weeks component, so that shouldn't cause any problems. So, I think  
that's about it.

Michael Glaesemann
grzm seespotcode net



В списке pgsql-hackers по дате отправления
От: Jeroen T. Vermeulen
Дата:
Сообщение: Optimizing prepared statements
От: Gregory Stark
Дата:
FAQ