From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kenneth Marshall <ktm@rice.edu>
Cc: pgsql-patches@postgresql.org
Cc: twraney@comcast.net
Cc: neilc@samurai.com
Subject: Re: updated hash functions for postgresql v1
Date: Sun, 16 Mar 2008 22:53:02 -0400
Message-ID: <21779.1205722382@sss.pgh.pa.us> (raw)
In-Reply-To: <20071027201557.GW27320@it.is.rice.edu>
References: <20071027201557.GW27320@it.is.rice.edu>
Kenneth Marshall <ktm@rice.edu> writes:
> Dear PostgreSQL Developers,
> This patch is a "diff -c" against the hashfunc.c from postgresql-8.3beta1.
It's pretty obvious that this patch hasn't even been tested on a
big-endian machine:
> + #ifndef WORS_BIGENDIAN
However, why do we need two code paths anyway? I don't think there's
any requirement for the hash values to come out the same on little-
and big-endian machines. In common cases the byte-array data being
presented to the hash function would be different to start with, so
you could hardly expect identical hash results even if you had separate
code paths.
I don't find anything very compelling about 64-bit hashing, either.
We couldn't move to that without breaking API for hash functions
of user-defined types. Given all the other problems with hash
indexes, the issue of whether it's useful to have more than 2^32
hash buckets seems very far off indeed.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-patches@postgresql.org
Cc: tgl@sss.pgh.pa.us, ktm@rice.edu, twraney@comcast.net, neilc@samurai.com
Subject: Re: updated hash functions for postgresql v1
In-Reply-To: <21779.1205722382@sss.pgh.pa.us>
References: <20071027201557.GW27320@it.is.rice.edu> <21779.1205722382@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