From: | Alena Rybakina |
---|---|
To: | Alexander Korotkov |
Cc: | Pavel Borisov |
Subject: | Re: POC, WIP: OR-clause support for indexes |
Date: | 2025-03-28 12:23:24 |
Message-ID: | [email protected] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I agree with your code in general, but to be honest, double qsort
confused me a little.
I understood why it is needed - we need to sort the elements so that
they stand next to each other if they can be assigned to the same group,
and then sort the groups themselves according to the set identifier.
I may be missing something, but in the worst case we can get the
complexity of qsort O(n^2), right? And I saw the letter where you
mentioned this, but it is possible to use mergesort algorithm instead of
qsort, which in the worst case gives n * O(n) complexity?
--
Regards,
Alena Rybakina
Postgres Professional
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Bapat | 2025-03-28 12:27:50 | Re: Test to dump and restore objects left behind by regression |
Previous Message | Alexander Pyhalov | 2025-03-28 12:22:39 | Re: SQLFunctionCache and generic plans |