From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [SQL] Interval subtracting |
Date: | 2006-03-02 00:37:37 |
Message-ID: | 17752.1141259857@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches pgsql-sql |
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.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Dilger | 2006-03-02 01:18:12 | Re: [SQL] Interval subtracting |
Previous Message | Mark Dilger | 2006-03-02 00:02:58 | Re: [SQL] Interval subtracting |
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Dilger | 2006-03-02 01:18:12 | Re: [SQL] Interval subtracting |
Previous Message | Mark Dilger | 2006-03-02 00:02:58 | Re: [SQL] Interval subtracting |
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Dilger | 2006-03-02 01:18:12 | Re: [SQL] Interval subtracting |
Previous Message | Mark Dilger | 2006-03-02 00:02:58 | Re: [SQL] Interval subtracting |