Re: [COMMITTERS] pgsql: Improve performance of find_all_inheritors()

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru>
Cc: Teodor Sigaev <teodor(at)sigaev(dot)ru>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Improve performance of find_all_inheritors()
Date: 2017-03-29 00:59:17
Message-ID: CA+TgmoZ6KbK3NuzHBkPWfDaN86us_tZQhgMG0nukaVoCBUngYQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, Mar 28, 2017 at 3:59 PM, Aleksander Alekseev
<a(dot)alekseev(at)postgrespro(dot)ru> wrote:
> Hi, Robert.
>
>> I'm a little worried that this will be noticeably slower when the
>> number of partitions is small, like 4 or 8 or 16. In other places,
>> we've found it necessary to support both a list-based strategy and a
>> hash-based strategy to avoid regressing small cases (e.g.
>> join_rel_list + join_rel_hash in PlannerInfo, ResourceArray in
>> resowner.c, etc).
>
> I've checked it [1]. Apparently in this particular case patches make code
> faster on small amount of partitions as well.

Huh. Well, in that case, cool.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-03-29 01:13:05 pgsql: doc: Mention --enable-tap-tests in regression test chapter
Previous Message Peter Eisentraut 2017-03-29 00:56:34 pgsql: Change 'diag' to 'note' in TAP tests

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2017-03-29 01:13:29 Re: make check-world output
Previous Message Robert Haas 2017-03-29 00:57:51 Re: Getting server crash after running sqlsmith