Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B97E56326EE for ; Thu, 3 Dec 2009 15:23:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 08446-07 for ; Thu, 3 Dec 2009 19:23:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1D06F6326E3 for ; Thu, 3 Dec 2009 15:23:41 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id nB3JLJom012518; Thu, 3 Dec 2009 14:21:19 -0500 (EST) To: Gerardo Herzig cc: postgres list Subject: Re: create user xxx with md5 string? In-reply-to: <4B17FDCE.6030200@fmed.uba.ar> References: <4B17FDCE.6030200@fmed.uba.ar> Comments: In-reply-to Gerardo Herzig message dated "Thu, 03 Dec 2009 15:05:02 -0300" Date: Thu, 03 Dec 2009 14:21:19 -0500 Message-ID: <12517.1259868079@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/3 X-Sequence-Number: 33441 Gerardo Herzig writes: > Hi all. Im triyng, with no success, to create a user, and set the > password with a md5 string. The correct method for computing the md5'd password includes the username. I think it's 'md5' || md5sum(password || username) but look at the code or docs. regards, tom lane