Add a bound check to TidRangeEval

Поиск
Список
Период
Сортировка
От Junwang Zhao
Тема Add a bound check to TidRangeEval
Дата
Msg-id CAEG8a3KUbUUqQgfK5X8Sj-+ppPtGNTU+Ziep0Rxr7SLjoR+B6w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Add a bound check to TidRangeEval
Список pgsql-hackers
Hi hackers,

The comments of TidRangeEval saids:

```
Returns false if we detect the range cannot contain any tuples.
```

After narrowing the upper and lower bounds, we can add an
additional check to verify if the lower bound exceeds the
upper bound. If true, return false to avoid unnecessary calls
to table_beginscan_tidrange.

PFA the trivial patch.

-- 
Regards
Junwang Zhao

Вложения

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