pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dennis Bjorklund <db@zigo.dhs.org>
Cc: Jim C. Nasby <jim@nasby.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Horribly slow hash join
Date: Sun, 18 Apr 2004 11:39:10 -0400
Message-ID: <19681.1082302750@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0404180814280.4551-100000@zigo.dhs.org>
References: <Pine.LNX.4.44.0404180814280.4551-100000@zigo.dhs.org>

Dennis Bjorklund <db@zigo.dhs.org> writes:
> On Sat, 17 Apr 2004, Tom Lane wrote:
>> *some* set of inputs.  (Also, I have been harboring some notions of
>> supporting cross-type hash joins for integer types, which will not work
>> unless small int8 values hash the same as int4 etc.)

> The simple solution would be to always extend integers to 64 bits (or
> whatever the biggest integer is) before calculating the hash.

That creates portability issues though.  We do not depend on there being
a 64-bit-int type for anything except int8 itself, and I don't want to
start doing so.

			regards, tom lane



view thread (24+ messages)  latest in thread

Message-ID: <19681.1082302750@sss.pgh.pa.us>
Permalink:  ../19681.1082302750@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19681.1082302750@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, db@zigo.dhs.org, jim@nasby.net
  Subject: Re: Horribly slow hash join
  In-Reply-To: <19681.1082302750@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