Re: [SQL] Interval subtracting

From: Mark Dilger <pgsql(at)markdilger(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: [SQL] Interval subtracting
Date: 2006-03-01 23:43:58
Message-ID: 440631BE.2050501@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:
>
>>This overall design seems more flexible than Tom's recent post in which he
>>stated that justify_days should call justify_hours internally.
>
>
> AFAIR I said the exact opposite.
>
> regards, tom lane

Tom Lane also wrote:
> assumption), but justify_days should be changed to be effectively a
> combination of both functions --- that is, it should fix all three
> fields using both the 30days and the 24hours assumptions. Then it could
> guarantee that all come out with the same sign.

How is changing justify days so that it touches the hours field different from
having justify_days call justify_hours?

mark

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2006-03-01 23:49:46 Re: [SQL] Interval subtracting
Previous Message Bruce Momjian 2006-03-01 23:26:24 Re: [SQL] Interval subtracting

Browse pgsql-patches by date

  From Date Subject
Next Message Mark Dilger 2006-03-01 23:49:46 Re: [SQL] Interval subtracting
Previous Message Bruce Momjian 2006-03-01 23:26:24 Re: [SQL] Interval subtracting

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Joseph Krogh 2006-03-01 23:47:53 Re: Problem with query on history table
Previous Message Bruce Momjian 2006-03-01 23:26:24 Re: [SQL] Interval subtracting