| От | Tom Lane |
|---|---|
| Тема | Re: [SQL] Interval subtracting |
| Дата | |
| Msg-id | 17752.1141259857@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [SQL] Interval subtracting (Mark Dilger <pgsql@markdilger.com>) |
| Ответы |
Re: [SQL] Interval subtracting
|
| Список | pgsql-hackers |
Mark Dilger <pgsql@markdilger.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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера