From: | Mark Dilger <pgsql(at)markdilger(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: [SQL] Interval subtracting |
Date: | 2006-03-02 01:18:12 |
Message-ID: | 440647D4.9060601@markdilger.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches pgsql-sql |
Tom Lane wrote:
> Mark Dilger <pgsql(at)markdilger(dot)com> writes:
>
>>Tom Lane wrote:
>>
>>>If so, one function or the other is cheating.
>
>
>>That depends what you mean by cheating. The justify_hours function
>>looks to see what answer justify_days would give, but does not
>>actually change the data. I described this all earlier and I still
>>don't see why there is anything wrong with it.
>
>
> The problem is that you can't determine "what answer justify_days would
> give" without using the assumption "1 month == 30 days", which is an
> assumption that justify_hours must not depend on.
Ahhh. So the fact that justify_days already makes the 1 month == 30 days
assumption is ok in that function but can't be propagated to justify_hours.
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2006-03-02 01:27:17 | Re: ipcclean in 8.1 broken? |
Previous Message | Tom Lane | 2006-03-02 00:37:37 | Re: [SQL] Interval subtracting |
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2006-03-02 06:45:52 | Re: [SQL] Interval subtracting |
Previous Message | Tom Lane | 2006-03-02 00:37:37 | Re: [SQL] Interval subtracting |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-03-02 06:16:47 | Re: Change date format through an environmental variable? |
Previous Message | Tom Lane | 2006-03-02 00:37:37 | Re: [SQL] Interval subtracting |