X-POP3-Server: Host ([mail.hitechroboticsystemz.com]) 	by hitechgears.com (PostMaster POP3 Login [hrs@hitechroboticsystemz.com] [192.168.0.25]); 	Mon, 23 Jan 2012 06:22:11 +0530
Return-Path: <pgsql-general-owner+m184234@postgresql.org>
Received: from mx2.hub.org [200.46.204.254] by dr178.cyberspaceindia.com with SMTP;
   Mon, 23 Jan 2012 06:09:32 +0530
Received: from postgresql.org (mail.postgresql.org [200.46.204.86])
	by mx2.hub.org (Postfix) with ESMTP id 15B7B1FF7530;
	Sun, 22 Jan 2012 20:39:23 -0400 (AST)
Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125])
	by mail.postgresql.org (Postfix) with ESMTP id 54FDC36AADD
	for <pgsql-general@postgresql.org>; Sun, 22 Jan 2012 20:38:44 -0400 (AST)
Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48])
	by makus.postgresql.org with esmtp (Exim 4.72)
	(envelope-from <dwnoon@ntlworld.com>)
	id 1Rp7vl-0008QN-JG
	for pgsql-general@postgresql.org; Mon, 23 Jan 2012 00:38:44 +0000
Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35])
          by mtaout02-winn.ispmail.ntl.com
          (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP
          id <20120123003828.DGOM27245.mtaout02-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>
          for <pgsql-general@postgresql.org>;
          Mon, 23 Jan 2012 00:38:28 +0000
Received: from karnak.local ([81.97.90.92])
          by aamtaout02-winn.ispmail.ntl.com
          (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP
          id <20120123003828.GVQI5924.aamtaout02-winn.ispmail.ntl.com@karnak.local>
          for <pgsql-general@postgresql.org>;
          Mon, 23 Jan 2012 00:38:28 +0000
Received: from localhost (localhost [127.0.0.1])
	by karnak.local (Postfix) with ESMTP id 085E23003
	for <pgsql-general@postgresql.org>; Sun, 22 Jan 2012 19:49:16 +0000 (GMT)
X-Virus-Scanned: amavisd-new at local
Received: from karnak.local ([127.0.0.1])
	by localhost (karnak.local [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id KneSlbX2exMI for <pgsql-general@postgresql.org>;
	Sun, 22 Jan 2012 19:49:14 +0000 (GMT)
Received: from karnak.local (localhost [127.0.0.1])
	by karnak.local (Postfix) with ESMTP id 3BFBB3002
	for <pgsql-general@postgresql.org>; Sun, 22 Jan 2012 19:49:14 +0000 (GMT)
Date: Sun, 22 Jan 2012 19:41:24 +0000
From: David W Noon <dwnoon@ntlworld.com>
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] hash options
Message-ID: <20120122194124.30c5c19b@karnak.local>
In-Reply-To: <8585BA53443004458E0BAA6134C5A7FB9CD327F6@EGEXCMB01.oww.root.lcl>
References: <8585BA53443004458E0BAA6134C5A7FB9CD327F6@EGEXCMB01.oww.root.lcl>
Organization: Luton Operatic Society
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
 boundary="Sig_/P3jCxfcX_6kGQ38.7Aj14Bq"; protocol="application/pgp-signature"
X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=uObrxnre4hsA:10 a=wPDyFdB5xvgA:10 a=NLZqzBF-AAAA:8 a=PPGx02LdvwWQcnyny7MA:9 a=CjuIK1q_8ugA:10 a=_dQi-Dcv4p4A:10 a=PWltAz8wz7dwA8VgFmcA:9 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
X-Pg-Spam-Score: -1.9 (-)
X-Mailing-List: pgsql-general
List-Archive: <http://archives.postgresql.org/pgsql-general>
List-Help: <mailto:majordomo@postgresql.org?body=help>
List-ID: <pgsql-general.postgresql.org>
List-Owner: <mailto:pgsql-general-owner@postgresql.org>
List-Post: <mailto:pgsql-general@postgresql.org>
List-Subscribe: <mailto:majordomo@postgresql.org?body=sub%20pgsql-general>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Precedence: bulk
Sender: pgsql-general-owner@postgresql.org
X-Declude-Sender: pgsql-general-owner+m184234@postgresql.org [200.46.204.254]
X-Declude-Spoolname: -1750085472685.eml
X-Declude-RefID: str=0001.0A090209.4F1CAC49.004F:SCFMA507887,ss=1,fgs=0
X-Declude-Note: Scanned by Declude 4.10.79 "http://www.declude.com/x-note.htm"
X-Declude-Scan: Incoming Score [4] at 06:09:42 on 23 Jan 2012
X-Declude-Tests: NOABUSE [2], ROUTING [4], FROMNOMATCH [2], HAM-INDICATOR [-8], FILTER-SUBJECT [2], FILTER-SPAM [5]
X-Country-Chain: UNITED KINGDOM->UNITED STATES->PANAMA->destination
X-Declude-Code: 2000010f
X-HELO: mx2.hub.org
X-Identity: 200.46.204.254 | mx2.hub.org | postgresql.org
X-Rcpt-To: <anisha.kaul@hitechroboticsystemz.com>
X-SmarterMail-Spam: Declude: 4
X-SmarterMail-TotalSpamWeight: 4

--Sig_/P3jCxfcX_6kGQ38.7Aj14Bq
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Sun, 22 Jan 2012 09:59:55 -0600, Little, Douglas wrote about
[GENERAL] hash options:

>I'm working on a data warehouse dimensionalization process   where I
>need to hash a text string to use as the key. I've implemented with
>MD5.  It works fine,  the problem I have is the size of the md5 (32
>bytes) is often longer than the original string - thus not
>accomplishing what I want - space savings.
>
>Does anybody have alternative hash function recommendations?

Try CRC32, possibly augmented by a CRC16 in a separate attribute.

I have CRC functions for PostgreSQL, written in C, and will make them
available to anybody who wants them.
--=20
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

--Sig_/P3jCxfcX_6kGQ38.7Aj14Bq
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk8cZmoACgkQc9/LpQ70v49DuwCffb/vNSPzMDR9Env5kxsGwnXO
x/sAniK8VOLEADfjXXFAFrDN5aBR4n5u
=xcnE
-----END PGP SIGNATURE-----

--Sig_/P3jCxfcX_6kGQ38.7Aj14Bq--
