X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E9F60D1DCF5 for ; Sun, 18 Apr 2004 00:46:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 15239-01 for ; Sun, 18 Apr 2004 00:46:02 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9297DD1DC7D for ; Sun, 18 Apr 2004 00:46:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3I3jxVJ015054; Sat, 17 Apr 2004 23:45:59 -0400 (EDT) To: Greg Stark Cc: "Jim C. Nasby" , pgsql-performance@postgresql.org Subject: Re: Horribly slow hash join In-reply-to: <878ygu8auw.fsf@stark.xeocode.com> References: <20040416154502.GF87362@nasby.net> <450.1082133251@sss.pgh.pa.us> <20040416164644.GH87362@nasby.net> <808.1082135098@sss.pgh.pa.us> <20040416172523.GJ87362@nasby.net> <1263.1082138383@sss.pgh.pa.us> <20040416184541.GK87362@nasby.net> <10603.1082218095@sss.pgh.pa.us> <878ygu8auw.fsf@stark.xeocode.com> Comments: In-reply-to Greg Stark message dated "17 Apr 2004 19:04:39 -0400" Date: Sat, 17 Apr 2004 23:45:58 -0400 Message-ID: <15053.1082259958@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/240 X-Sequence-Number: 6540 Greg Stark writes: > Tom Lane writes: >> (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 obvious way to modify the hash function is to xor the high 32 bits with > the low 32 bits. That maintains the property you need No it doesn't ... regards, tom lane