Re: so, does this overlap or not...? - fencepost question on overlaps()
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: so, does this overlap or not...? - fencepost question on overlaps() |
| Дата | |
| Msg-id | 24445.1275575283@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | so, does this overlap or not...? - fencepost question on overlaps() (Frank van Vugt <ftm.van.vugt@foxi.nl>) |
| Ответы |
Re: so, does this overlap or not...? - fencepost question on overlaps()
|
| Список | pgsql-general |
Frank van Vugt <ftm.van.vugt@foxi.nl> writes:
> This doesn't seem to make sense to me, can someone explain the rationale
> behind it?
The rationale is "do what the SQL spec says" ;-)
What the spec says is
( S1 > S2 AND NOT ( S1 >= T2 AND T1 >= T2 ) )
OR
( S2 > S1 AND NOT ( S2 >= T1 AND T2 >= T1 ) )
OR
( S1 = S2 AND ( T1 <> T2 OR T1 = T2 ) )
I seem to recall a previous discussion in the PG lists where we
reverse-engineered a plausible explanation of what the standards
committee had in mind when they wrote this, but I don't have time
right now to go looking for it.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера