Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 693092E0035 for ; Wed, 28 May 2008 20:37:42 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50331-03 for ; Wed, 28 May 2008 20:37:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by developer.postgresql.org (Postfix) with ESMTP id 642472E0033 for ; Wed, 28 May 2008 20:37:38 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m4SNba128261; Wed, 28 May 2008 19:37:36 -0400 (EDT) From: Bruce Momjian Message-Id: <200805282337.m4SNba128261@momjian.us> Subject: Re: Creating large database of MD5 hash values In-Reply-To: To: "Decibel!" Date: Wed, 28 May 2008 19:37:36 -0400 (EDT) CC: Alvaro Herrera , Jon Stewart , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/358 X-Sequence-Number: 30326 Decibel! wrote: > On Apr 11, 2008, at 10:25 AM, Alvaro Herrera wrote: > > Sorry, yes, I'm behind on email... :( > > > If MD5 values will be your primary data and you'll be storing millions > > of them, it would be wise to create your own datatype and operators > > with > > the most compact and efficient representation possible. > > > If you do this *please* post it. I really think it would be worth > while for us to have fixed-size data types for common forms of binary > data; MD5, SHA1 and SHA256 come to mind. Why do you think it would be worth while? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +