Skip to content

Commit 3b08e09

Browse files
committed
Elaborate on what gets stored in pg_authid.rolpasswd.
Also, add cross-reference from pg_shadow.passwd to pg_authid.rolpasswd and fix a bit of markup I muffed in my previous commit. Per discussion with Josh Kupershmidt.
1 parent d9ac2fd commit 3b08e09

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

doc/src/sgml/catalogs.sgml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.225.2.3 2010/09/13 01:25:12 rhaas Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.225.2.4 2010/09/13 17:03:23 rhaas Exp $ -->
22
<!--
33
Documentation of the system catalogs, directed toward PostgreSQL developers
44
-->
@@ -1179,7 +1179,14 @@
11791179
<row>
11801180
<entry><structfield>rolpassword</structfield></entry>
11811181
<entry><type>text</type></entry>
1182-
<entry>Password (possibly encrypted); null if none</entry>
1182+
<entry>
1183+
Password (possibly encrypted); null if none. If the password is
1184+
encrypted, this column will contain the string md5 followed by a
1185+
32-character hexadecimal MD5 hash. The MD5 hash will be of the
1186+
user's password concatenated to their username (for example, if
1187+
user joe has password xyzzy, <productname>PostgreSQL</> will store
1188+
the md5 hash of xyzzyjoe).
1189+
</entry>
11831190
</row>
11841191

11851192
<row>
@@ -6937,7 +6944,7 @@
69376944
<productname>PostgreSQL</productname> before version 8.1.
69386945
It shows properties of all roles that are marked as
69396946
<structfield>rolcanlogin</> in
6940-
<link linkend="catalog-pg-authid">pg_authid</link>.
6947+
<link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.
69416948
</para>
69426949

69436950
<para>
@@ -7004,7 +7011,9 @@
70047011
<entry><structfield>passwd</structfield></entry>
70057012
<entry><type>text</type></entry>
70067013
<entry></entry>
7007-
<entry>Password (possibly encrypted)</entry>
7014+
<entry>Password (possibly encrypted); null if none. See
7015+
<link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>
7016+
for details of how encrypted passwords are stored.</entry>
70087017
</row>
70097018

70107019
<row>

0 commit comments

Comments
 (0)