Re: Example for intersection operator is wrong

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Example for intersection operator is wrong
Дата
Msg-id 8266.1468517814@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Example for intersection operator is wrong  (etulsky@gmail.com)
Список pgsql-docs
etulsky@gmail.com writes:
> The following documentation comment has been logged on the website:
> Page: https://www.postgresql.org/docs/9.2/static/functions-range.html
> Description:

> On the page https://www.postgresql.org/docs/9.2/static/functions-range.html
> it gives an example for the intersection of range (5,15) and range (10,20)
> as [10,15). But 10 isn't included in the second range; the actual output of
> this operator is [11,15).

Uh, no, it isn't:

regression=# select int8range(5,15) * int8range(10,20);
 ?column?
----------
 [10,15)
(1 row)

You'd be correct if int8range(10,20) produced '(10,20)', but it produces
'[10,20)'.

            regards, tom lane


В списке pgsql-docs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: hba_conf hostssl clientcert=1 no longer required in 9.4
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Some minor error fixes