Re: bad estimation together with large work_mem generates terrible slow hash joins - Mailing list pgsql-hackers

From Robert Haas
Subject Re: bad estimation together with large work_mem generates terrible slow hash joins
Date
Msg-id CA+TgmoYt9gtGc+-oCprBV7OKwAvTwK24ZF_G7ZHrFq6VnsSAwg@mail.gmail.com
Whole thread Raw
In response to Re: bad estimation together with large work_mem generates terrible slow hash joins  (Tomas Vondra <tv@fuzzy.cz>)
Responses Re: bad estimation together with large work_mem generates terrible slow hash joins  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Sep 11, 2014 at 5:57 PM, Tomas Vondra <tv@fuzzy.cz> wrote:
> Attached is the patch split as suggested:
>
> (a) hashjoin-nbuckets-v14a-size.patch
>
>     * NTUP_PER_BUCKET=1
>     * counting buckets towards work_mem
>     * changes in ExecChooseHashTableSize (due to the other changes)

OK, I'm going to work on this one now.  I have some ideas about how to
simplify this a bit and will post an update in a few hours once I see
how that pans out.

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



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Incorrect initialization of sentPtr in walsender.c
Next
From: Amit Kapila
Date:
Subject: Re: pg_basebackup vs. Windows and tablespaces