Re: Error in Example

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: Error in Example
Дата
Msg-id 2000743697.23098.1693581412642@office.mailbox.org
обсуждение исходный текст
Ответ на Error in Example  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On 31/08/2023 01:29 CEST PG Doc comments form <noreply@postgresql.org> wrote:

> Page: https://www.postgresql.org/docs/15/indexes-partial.html
> Description:
>
> The IP addresses used to exemplify which one will be covered by the partial
> index are inverted.

No, the example is correct.  It's about only indexing addresses outside some
hypothetical organization's subnet 192.168.100.0/24.  Notice that the index
predicate is negated.

Of course the predicate could be written without inverting the range:

    WHERE (client_ip <= inet '192.168.100.0' OR
               client_ip >= inet '192.168.100.255')

--
Erik



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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Error in Example
Следующее
От: PG Doc comments form
Дата:
Сообщение: Clarification of deadlock possibilities in section 13.3.5. Advisory Locks