Re: [HACKERS] Making clausesel.c Smarter

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: [HACKERS] Making clausesel.c Smarter
Дата
Msg-id CAKJS1f9WoCckGxKYg_uFzQPkJuxPFjcq2Z3WEX80azcS4VsYSQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Making clausesel.c Smarter  (Daniel Gustafsson <daniel@yesql.se>)
Ответы Re: [HACKERS] Making clausesel.c Smarter  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-hackers
On 6 September 2017 at 00:43, Daniel Gustafsson <daniel@yesql.se> wrote:
> This patch was moved to the currently open Commitfest.  Given the above
> comment, is the last patch in this thread still up for review, or are you
> working on a new version?  Just to avoid anyone reviewing an outdated version.

Hi Daniel,

I've not had time to work on a new version yet and I can't imagine
that I will for quite some time.

The idea I had to remove the quadratic search on the list was to add
to or modify equal() in equalfuncs.c to have it return -1, 0, +1 and
use that as a comparison function in a binary search tree. The Btree
would complement List as a way of storing Nodes in no particular
order, but in a way that a Node can be found quickly. There's likely
more than a handful of places in the planner that would benefit from
this already.

It's not a 5-minute patch and it probably would see some resistance,
so won't have time to look at this soon.

If the possibility of this increasing planning time in corner cases is
going to be a problem, then it might be best to return this with
feedback for now and I'll resubmit if I get time later in the cycle.

-- David Rowley                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] Coverage improvements of src/bin/pg_basebackup andpg_receivewal --endpos
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [HACKERS] Replacing lfirst() with lfirst_node() appropriately in planner.c