X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BD0379DCB10 for ; Mon, 12 Dec 2005 02:35:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 97544-10 for ; Mon, 12 Dec 2005 02:35:40 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from service-web.de (p15093784.pureserver.info [217.160.106.224]) by postgresql.org (Postfix) with ESMTP id C05A39DCAAD for ; Mon, 12 Dec 2005 02:35:38 -0400 (AST) Received: from [192.168.178.99] (p548B252B.dip0.t-ipconnect.de [84.139.37.43]) by service-web.de (Postfix) with ESMTP id 2328E20002A; Mon, 12 Dec 2005 07:35:37 +0100 (CET) Subject: Re: Please Help: PostgreSQL Query Optimizer From: Tino Wildenhain To: Carlos Moreno Cc: pgsql-hackers@postgresql.org In-Reply-To: <439CAE4D.2030208@mochima.com> References: <200512111126.18566.josh@agliodbs.com> <439CAE4D.2030208@mochima.com> Content-Type: text/plain Date: Mon, 12 Dec 2005 07:35:35 +0100 Message-Id: <1134369335.4975.74.camel@Andrea.peacock.de> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/579 X-Sequence-Number: 77427 Am Sonntag, den 11.12.2005, 17:55 -0500 schrieb Carlos Moreno: ... > I'm interested in adding additional hash functions -- PG supports, as part > of the built-in SQL functions, MD5 hashing. So, for instance, I can simply > type, at a psql console, the following: > > select md5('abc'); > > My "feature request" (which again, I'd like to implement it myself) would > be the ability to do: > > select sha1('xyz'), sha256('etc'); > > (At least these two -- maybe for completeness it would be good to have > sha224, 384, and 512, but I guess SHA1 and SHA-256 would be a very good > and sound starting point) > > So, can you offer some advice or pointers on how to go about that? You might want to check out contrib/pgcrypto more often then not, if you want something, its already done ;) Not sure if this will ever be included in the core, since not many people need these advanced hash functions. HTH Tino Wildenhain