aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-15 02:40:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-15 02:40:36 +0000
commit2498d8296eebd6706d5a00886a4f5ba02a1fe261 (patch)
treec07de46683136e441e7f3fef937f540161761d61 /doc/src
parentf590ed12f67620ac018491739c8bc5b13de9495c (diff)
downloadpostgresql-2498d8296eebd6706d5a00886a4f5ba02a1fe261.tar.gz
postgresql-2498d8296eebd6706d5a00886a4f5ba02a1fe261.zip
Clean up some stray remaining references to pg_shadow, pg_user, pg_group.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/dropuser.sgml49
-rw-r--r--doc/src/sgml/ref/reindex.sgml9
-rw-r--r--doc/src/sgml/xaggr.sgml18
3 files changed, 38 insertions, 38 deletions
diff --git a/doc/src/sgml/ref/dropuser.sgml b/doc/src/sgml/ref/dropuser.sgml
index ee38f0facb3..66d38d1ec13 100644
--- a/doc/src/sgml/ref/dropuser.sgml
+++ b/doc/src/sgml/ref/dropuser.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.32 2005/05/29 03:32:18 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.33 2005/08/15 02:40:20 tgl Exp $
PostgreSQL documentation
-->
@@ -33,17 +33,16 @@ PostgreSQL documentation
<para>
<application>dropuser</application> removes an existing
- <productname>PostgreSQL</productname> user
- <emphasis>and</emphasis> the databases which that user owned.
- Only superusers (users with <literal>usesuper</literal> set in
- the <literal>pg_shadow</literal> table) can destroy
- <productname>PostgreSQL</productname> users.
+ <productname>PostgreSQL</productname> user.
+ Only superusers and users with the <literal>CREATEROLE</> privilege can
+ remove <productname>PostgreSQL</productname> users. (To remove a
+ superuser, you must yourself be a superuser.)
</para>
<para>
<application>dropuser</application> is a wrapper around the
- <acronym>SQL</acronym> command <xref linkend="SQL-DROPUSER"
- endterm="SQL-DROPUSER-title">.
+ <acronym>SQL</acronym> command <xref linkend="SQL-DROPROLE"
+ endterm="SQL-DROPROLE-title">.
There is no effective difference between dropping users via
this utility and via other methods for accessing the server.
</para>
@@ -62,8 +61,8 @@ PostgreSQL documentation
<term><replaceable class="parameter">username</replaceable></term>
<listitem>
<para>
- Specifies the name of the <productname>PostgreSQL</productname> user to be removed.
- You will be prompted for a name if none is specified on the command line.
+ Specifies the name of the <productname>PostgreSQL</productname> user to be removed.
+ You will be prompted for a name if none is specified on the command line.
</para>
</listitem>
</varlistentry>
@@ -74,7 +73,7 @@ PostgreSQL documentation
<listitem>
<para>
Echo the commands that <application>dropuser</application> generates
- and sends to the server.
+ and sends to the server.
</para>
</listitem>
</varlistentry>
@@ -111,10 +110,10 @@ PostgreSQL documentation
<term><option>--host <replaceable class="parameter">host</replaceable></></term>
<listitem>
<para>
- Specifies the host name of the machine on which the
- server
- is running. If the value begins with a slash, it is used
- as the directory for the Unix domain socket.
+ Specifies the host name of the machine on which the
+ server
+ is running. If the value begins with a slash, it is used
+ as the directory for the Unix domain socket.
</para>
</listitem>
</varlistentry>
@@ -124,9 +123,9 @@ PostgreSQL documentation
<term><option>--port <replaceable class="parameter">port</replaceable></></term>
<listitem>
<para>
- Specifies the TCP port or local Unix domain socket file
- extension on which the server
- is listening for connections.
+ Specifies the TCP port or local Unix domain socket file
+ extension on which the server
+ is listening for connections.
</para>
</listitem>
</varlistentry>
@@ -179,8 +178,8 @@ PostgreSQL documentation
<title>Diagnostics</title>
<para>
- In case of difficulty, see <xref linkend="SQL-DROPUSER"
- endterm="sql-dropuser-title"> and <xref linkend="APP-PSQL"> for
+ In case of difficulty, see <xref linkend="SQL-DROPROLE"
+ endterm="sql-droprole-title"> and <xref linkend="APP-PSQL"> for
discussions of potential problems and error messages.
The database server must be running at the
targeted host. Also, any default connection settings and environment
@@ -199,7 +198,7 @@ PostgreSQL documentation
server:
<screen>
<prompt>$ </prompt><userinput>dropuser joe</userinput>
-<computeroutput>DROP USER</computeroutput>
+<computeroutput>DROP ROLE</computeroutput>
</screen>
</para>
@@ -209,10 +208,10 @@ PostgreSQL documentation
command:
<screen>
<prompt>$ </prompt><userinput>dropuser -p 5000 -h eden -i -e joe</userinput>
-<computeroutput>User "joe" and any owned databases will be permanently deleted.
+<computeroutput>Role "joe" will be permanently removed.
Are you sure? (y/n) </computeroutput><userinput>y</userinput>
-<computeroutput>DROP USER "joe"
-DROP USER</computeroutput>
+<computeroutput>DROP ROLE "joe"
+DROP ROLE</computeroutput>
</screen>
</para>
</refsect1>
@@ -223,7 +222,7 @@ DROP USER</computeroutput>
<simplelist type="inline">
<member><xref linkend="app-createuser"></member>
- <member><xref linkend="sql-dropuser" endterm="sql-dropuser-title"></member>
+ <member><xref linkend="sql-droprole" endterm="sql-droprole-title"></member>
<member>Environment Variables (<xref linkend="libpq-envars">)</member>
</simplelist>
</refsect1>
diff --git a/doc/src/sgml/ref/reindex.sgml b/doc/src/sgml/ref/reindex.sgml
index 4bb6b9ff756..012e89c8728 100644
--- a/doc/src/sgml/ref/reindex.sgml
+++ b/doc/src/sgml/ref/reindex.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/reindex.sgml,v 1.27 2005/06/22 21:14:28 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/reindex.sgml,v 1.28 2005/08/15 02:40:20 tgl Exp $
PostgreSQL documentation
-->
@@ -176,9 +176,10 @@ REINDEX { INDEX | TABLE | DATABASE | SYSTEM } <replaceable class="PARAMETER">nam
<para>
If corruption is suspected in the indexes of any of the shared
- system catalogs (<structname>pg_database</structname>,
- <structname>pg_group</structname>,
- <structname>pg_shadow</structname>, or
+ system catalogs (<structname>pg_authid</structname>,
+ <structname>pg_auth_members</structname>,
+ <structname>pg_database</structname>,
+ <structname>pg_shdepend</structname>, or
<structname>pg_tablespace</structname>), then a standalone server
must be used to repair it. <command>REINDEX</> will not process
shared catalogs in multiuser mode.
diff --git a/doc/src/sgml/xaggr.sgml b/doc/src/sgml/xaggr.sgml
index b4d96d575ce..84ef58fbe95 100644
--- a/doc/src/sgml/xaggr.sgml
+++ b/doc/src/sgml/xaggr.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/xaggr.sgml,v 1.28 2005/03/30 02:08:39 neilc Exp $
+$PostgreSQL: pgsql/doc/src/sgml/xaggr.sgml,v 1.29 2005/08/15 02:40:23 tgl Exp $
-->
<sect1 id="xaggr">
@@ -141,22 +141,22 @@ CREATE AGGREGATE array_accum (
<programlisting>
SELECT attrelid::regclass, array_accum(attname)
FROM pg_attribute
- WHERE attnum &gt; 0 AND attrelid = 'pg_user'::regclass
+ WHERE attnum &gt; 0 AND attrelid = 'pg_tablespace'::regclass
GROUP BY attrelid;
- attrelid | array_accum
-----------+-----------------------------------------------------------------------------
- pg_user | {usename,usesysid,usecreatedb,usesuper,usecatupd,passwd,valuntil,useconfig}
+ attrelid | array_accum
+---------------+---------------------------------------
+ pg_tablespace | {spcname,spcowner,spclocation,spcacl}
(1 row)
SELECT attrelid::regclass, array_accum(atttypid)
FROM pg_attribute
- WHERE attnum &gt; 0 AND attrelid = 'pg_user'::regclass
+ WHERE attnum &gt; 0 AND attrelid = 'pg_tablespace'::regclass
GROUP BY attrelid;
- attrelid | array_accum
-----------+------------------------------
- pg_user | {19,23,16,16,16,25,702,1009}
+ attrelid | array_accum
+---------------+-----------------
+ pg_tablespace | {19,26,25,1034}
(1 row)
</programlisting>
</para>