Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A32B46346B5 for ; Sun, 12 Sep 2010 21:50:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 43311-04 for ; Mon, 13 Sep 2010 00:50:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by mail.postgresql.org (Postfix) with ESMTP id 0779F632E1D for ; Sun, 12 Sep 2010 21:50:50 -0300 (ADT) Received: by qyk36 with SMTP id 36so1314735qyk.19 for ; Sun, 12 Sep 2010 17:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=aMfazhCMVNdp8Zt6nSQzScSuD8uA2YH/pM1Bmk9gDY4=; b=ONSHo1+bkiPFcfW8Hdutr/MiPDFAhRD4RFi7r/Yq6SktHQgtRDeR/WYC9vcbjLqbqI wooO1lsa0eUH0VwS+Hk9OSI6ouM0eSHyR6vneiGFSYpuHRKBvKkSDeCdeittknlWMeaO 99NMlH2fLfsrUTn1+8TRCF6LXc3TysXTMNXdY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=UKsSTQlc9v8XlpM6TCMQYqvxGXTq94ctQnDuUXY9ykK+ZqVt+poI5u6efjjTIAJWYE BN+t8Ky1mGEVdYo1MJM+RTTFIs2c5EUz2wd5twSdVjImCXbMCFwSLeNuCwSw28MwWOS6 XSEbLzhJYlpMjqgRnVEdDFix+cp54FFJSe/dQ= Received: by 10.229.213.20 with SMTP id gu20mr2727820qcb.52.1284339049199; Sun, 12 Sep 2010 17:50:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.67.90 with HTTP; Sun, 12 Sep 2010 17:50:29 -0700 (PDT) In-Reply-To: References: From: Josh Kupershmidt Date: Sun, 12 Sep 2010 20:50:29 -0400 Message-ID: Subject: Re: Explanation of pg_authid.rolpassword To: Robert Haas Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/68 X-Sequence-Number: 6058 On Sun, Sep 12, 2010 at 8:36 PM, Robert Haas wrote: > On Thu, Sep 2, 2010 at 11:06 PM, Josh Kupershmidt wr= ote: > This seems a bit long-winded to me. =A0How about just changing the > column description to something like this: > > Either the user's unencrypted password (if the UNENCRYPTED option was > used when creating the role or if password_encryption is off), or the > string 'md5' followed by a 32-character hexadecimal md5 hash of the > user's password. =A0NULL if no password. I agree my explanation might have been a tad lengthy. But the md5 hash is of password plus username, not just password. This does seem to cause confusion; maybe we could leave the example password hashing in as a footnote on that page? Josh