Re: Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan
| От | Peter Geoghegan |
|---|---|
| Тема | Re: Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan |
| Дата | |
| Msg-id | CAH2-WzmuQXqRYWTiv-Yvjn9cnaPU2kVrTPUroOVa3cTk5dVv=A@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Optimizing nbtree ScalarArrayOp execution, allowing multi-column ordered scans, skip scan
|
| Список | pgsql-hackers |
On Sun, Apr 7, 2024 at 9:50 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> If you're doing that, then surely
>
> if (j != (BTEqualStrategyNumber - 1) ||
> !(xform[j].skey->sk_flags & SK_SEARCHARRAY))
> {
> ...
> }
> else
> {
> Assert(j == (BTEqualStrategyNumber - 1));
> Assert(xform[j].skey->sk_flags & SK_SEARCHARRAY);
> Assert(xform[j].ikey == array->scan_key);
> Assert(!(cur->sk_flags & SK_SEARCHARRAY));
> }
>
> those first two Asserts are redundant with the "if" as well.
I'll get rid of those other two assertions as well, then.
--
Peter Geoghegan
В списке pgsql-hackers по дате отправления: