pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stan Bielski <bielski@ece.cmu.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Optimizer refuses to hash join
Date: Thu, 29 Jul 2004 13:06:26 -0400
Message-ID: <15403.1091120786@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.3.96L.1040727152629.26493I-100000@elysium.pdl.cmu.edu>
References: <Pine.LNX.3.96L.1040727152629.26493I-100000@elysium.pdl.cmu.edu>

Stan Bielski <bielski@ece.cmu.edu> writes:
> I having a great deal of difficulty getting postgres to do a hash join.
> Even if I disable nestloop and mergejoin in postgres.conf, the optimizer
> still refuses to select hash join.

Are you sure the join condition is hashjoinable?  You didn't say
anything about the datatypes involved ...

If it is, the other possibility is that you need to increase sort_mem
to accommodate the hash table.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <15403.1091120786@sss.pgh.pa.us>
Permalink:  ../15403.1091120786@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15403.1091120786@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bielski@ece.cmu.edu
  Subject: Re: Optimizer refuses to hash join
  In-Reply-To: <15403.1091120786@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox