Re: [GENERAL] workaround for column cross-correlation - Mailing list pgsql-general

From Jeff Janes
Subject Re: [GENERAL] workaround for column cross-correlation
Date
Msg-id CAMkU=1xjE-8eVCt-qSn=OoSfoEzNH4SqxFRqbjNy8wPc27mTuQ@mail.gmail.com
Whole thread Raw
In response to [GENERAL] workaround for column cross-correlation  (Justin Pryzby <pryzby@telsasoft.com>)
Responses Re: [GENERAL] workaround for column cross-correlation
List pgsql-general
On Mon, Jun 12, 2017 at 8:17 PM, Justin Pryzby <pryzby@telsasoft.com> wrote:
I know PG 10 will have support "CREATE STATISTICS.." for this..

..but I wondered if there's a recommended workaround in earlier versions ?

Not without seeing the query....
 

2) memory explosion in hash join (due to poor estimate?) caused OOM.

As far as I know, the only way a hash join should do this is if the join includes a huge number of rows with exactly the same 32 bit hash codes.  Otherwise, it should spill to disk without causing OOM.  Hash aggregates, on the other hand, are a different matter.

 Cheers,

Jeff

pgsql-general by date:

Previous
From: Justin Pryzby
Date:
Subject: [GENERAL] workaround for column cross-correlation
Next
From: Justin Pryzby
Date:
Subject: Re: [GENERAL] workaround for column cross-correlation