mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 15:39:35 +08:00
SGML cleanup: consistently use "endterm" in <xref>s that link to the
reference page for SQL commands, so that the link text is italicized.
This commit is contained in:
parent
a2fb7b8a1f
commit
8c05ca7754
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.40 2005/03/13 09:36:30 neilc Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.41 2005/06/13 02:40:01 neilc Exp $ -->
|
||||||
|
|
||||||
<chapter id="ddl">
|
<chapter id="ddl">
|
||||||
<title>Data Definition</title>
|
<title>Data Definition</title>
|
||||||
@ -1540,14 +1540,14 @@ ALTER TABLE products RENAME TO items;
|
|||||||
There are several different privileges: <literal>SELECT</>,
|
There are several different privileges: <literal>SELECT</>,
|
||||||
<literal>INSERT</>, <literal>UPDATE</>, <literal>DELETE</>,
|
<literal>INSERT</>, <literal>UPDATE</>, <literal>DELETE</>,
|
||||||
<literal>RULE</>, <literal>REFERENCES</>, <literal>TRIGGER</>,
|
<literal>RULE</>, <literal>REFERENCES</>, <literal>TRIGGER</>,
|
||||||
<literal>CREATE</>, <literal>TEMPORARY</>, <literal>EXECUTE</>,
|
<literal>CREATE</>, <literal>TEMPORARY</>, <literal>EXECUTE</>, and
|
||||||
and <literal>USAGE</>. The privileges applicable to a particular
|
<literal>USAGE</>. The privileges applicable to a particular
|
||||||
object vary depending on the object's type (table, function, etc).
|
object vary depending on the object's type (table, function, etc).
|
||||||
For complete
|
For complete information on the different types of privileges
|
||||||
information on the different types of privileges supported by
|
supported by <productname>PostgreSQL</productname>, refer to the
|
||||||
<productname>PostgreSQL</productname>, refer to the
|
<xref linkend="sql-grant" endterm="sql-grant-title"> reference
|
||||||
<xref linkend="sql-grant"> reference page. The following sections
|
page. The following sections and chapters will also show you how
|
||||||
and chapters will also show you how those privileges are used.
|
those privileges are used.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -1558,8 +1558,9 @@ ALTER TABLE products RENAME TO items;
|
|||||||
<note>
|
<note>
|
||||||
<para>
|
<para>
|
||||||
To change the owner of a table, index, sequence, or view, use the
|
To change the owner of a table, index, sequence, or view, use the
|
||||||
<xref linkend="sql-altertable"> command. There are corresponding
|
<xref linkend="sql-altertable" endterm="sql-altertable-title">
|
||||||
<literal>ALTER</> commands for other object types.
|
command. There are corresponding <literal>ALTER</> commands for
|
||||||
|
other object types.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
@ -1596,14 +1597,15 @@ REVOKE ALL ON accounts FROM PUBLIC;
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Ordinarily, only the object's owner (or a superuser) can grant or revoke
|
Ordinarily, only the object's owner (or a superuser) can grant or
|
||||||
privileges on an object. However, it is possible to grant a privilege
|
revoke privileges on an object. However, it is possible to grant a
|
||||||
<quote>with grant option</>, which gives the recipient the right to
|
privilege <quote>with grant option</>, which gives the recipient
|
||||||
grant it in turn to others. If the grant option is subsequently revoked
|
the right to grant it in turn to others. If the grant option is
|
||||||
then all who received the privilege from that recipient (directly or
|
subsequently revoked then all who received the privilege from that
|
||||||
through a chain of grants) will lose the privilege. For details see
|
recipient (directly or through a chain of grants) will lose the
|
||||||
the <xref linkend="sql-grant"> and <xref linkend="sql-revoke"> reference
|
privilege. For details see the <xref linkend="sql-grant"
|
||||||
pages.
|
endterm="sql-grant-title"> and <xref linkend="sql-revoke"
|
||||||
|
endterm="sql-revoke-title"> reference pages.
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.253 2005/06/09 16:35:08 momjian Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.254 2005/06/13 02:40:04 neilc Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -8152,7 +8152,7 @@ select current_date + s.a as dates from generate_series(0,14,7) as s(a);
|
|||||||
<para>
|
<para>
|
||||||
The <function>session_user</function> is normally the user who initiated
|
The <function>session_user</function> is normally the user who initiated
|
||||||
the current database connection; but superusers can change this setting
|
the current database connection; but superusers can change this setting
|
||||||
with <xref linkend="sql-set-session-authorization">.
|
with <xref linkend="sql-set-session-authorization" endterm="sql-set-session-authorization-title">.
|
||||||
The <function>current_user</function> is the user identifier
|
The <function>current_user</function> is the user identifier
|
||||||
that is applicable for permission checking. Normally, it is equal
|
that is applicable for permission checking. Normally, it is equal
|
||||||
to the session user, but it changes during the execution of
|
to the session user, but it changes during the execution of
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.43 2005/05/10 22:27:29 momjian Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.44 2005/06/13 02:40:04 neilc Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="maintenance">
|
<chapter id="maintenance">
|
||||||
@ -74,12 +74,13 @@ $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.43 2005/05/10 22:27:29 momj
|
|||||||
</listitem>
|
</listitem>
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
|
|
||||||
The frequency and scope of the <command>VACUUM</> operations performed for each of
|
The frequency and scope of the <command>VACUUM</> operations
|
||||||
these reasons will vary depending on the needs of each site.
|
performed for each of these reasons will vary depending on the
|
||||||
Therefore, database administrators must understand these issues and
|
needs of each site. Therefore, database administrators must
|
||||||
develop an appropriate maintenance strategy. This section concentrates
|
understand these issues and develop an appropriate maintenance
|
||||||
on explaining the high-level issues; for details about command syntax
|
strategy. This section concentrates on explaining the high-level
|
||||||
and so on, see the <xref linkend="sql-vacuum"> reference page.
|
issues; for details about command syntax and so on, see the <xref
|
||||||
|
linkend="sql-vacuum" endterm="sql-vacuum-title"> reference page.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.40 2005/01/08 22:13:34 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.41 2005/06/13 02:40:04 neilc Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="managing-databases">
|
<chapter id="managing-databases">
|
||||||
@ -88,7 +88,7 @@ SELECT datname FROM pg_database;
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Databases are created with the SQL command
|
Databases are created with the SQL command
|
||||||
<xref linkend="sql-createdatabase">:<indexterm><primary>CREATE
|
<xref linkend="sql-createdatabase" endterm="sql-createdatabase-title">:<indexterm><primary>CREATE
|
||||||
DATABASE</></>
|
DATABASE</></>
|
||||||
<synopsis>
|
<synopsis>
|
||||||
CREATE DATABASE <replaceable>name</>;
|
CREATE DATABASE <replaceable>name</>;
|
||||||
@ -314,7 +314,7 @@ ALTER DATABASE mydb SET geqo TO off;
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
Databases are destroyed with the command
|
Databases are destroyed with the command
|
||||||
<xref linkend="sql-dropdatabase">:<indexterm><primary>DROP DATABASE</></>
|
<xref linkend="sql-dropdatabase" endterm="sql-dropdatabase-title">:<indexterm><primary>DROP DATABASE</></>
|
||||||
<synopsis>
|
<synopsis>
|
||||||
DROP DATABASE <replaceable>name</>;
|
DROP DATABASE <replaceable>name</>;
|
||||||
</synopsis>
|
</synopsis>
|
||||||
@ -379,7 +379,8 @@ dropdb <replaceable class="parameter">dbname</replaceable>
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To define a tablespace, use the <xref linkend="sql-createtablespace">
|
To define a tablespace, use the <xref
|
||||||
|
linkend="sql-createtablespace" endterm="sql-createdatabase-title">
|
||||||
command, for example:<indexterm><primary>CREATE TABLESPACE</></>
|
command, for example:<indexterm><primary>CREATE TABLESPACE</></>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE TABLESPACE fastspace LOCATION '/mnt/sda1/postgresql/data';
|
CREATE TABLESPACE fastspace LOCATION '/mnt/sda1/postgresql/data';
|
||||||
@ -459,8 +460,9 @@ CREATE TABLE foo(i int);
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
To remove an empty tablespace, use the <xref linkend="sql-droptablespace">
|
To remove an empty tablespace, use the <xref
|
||||||
command.
|
linkend="sql-droptablespace" endterm="sql-droptablespace-title">
|
||||||
|
command.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.50 2005/04/28 21:47:09 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.51 2005/06/13 02:40:05 neilc Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="mvcc">
|
<chapter id="mvcc">
|
||||||
@ -224,7 +224,7 @@ $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.50 2005/04/28 21:47:09 tgl Exp $
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
To set the transaction isolation level of a transaction, use the
|
To set the transaction isolation level of a transaction, use the
|
||||||
command <xref linkend="sql-set-transaction">.
|
command <xref linkend="sql-set-transaction" endterm="sql-set-transaction-title">.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect2 id="xact-read-committed">
|
<sect2 id="xact-read-committed">
|
||||||
@ -524,7 +524,8 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
|
|||||||
The list below shows the available lock modes and the contexts in
|
The list below shows the available lock modes and the contexts in
|
||||||
which they are used automatically by
|
which they are used automatically by
|
||||||
<productname>PostgreSQL</productname>. You can also acquire any
|
<productname>PostgreSQL</productname>. You can also acquire any
|
||||||
of these locks explicitly with the command <xref linkend="sql-lock">.
|
of these locks explicitly with the command <xref
|
||||||
|
linkend="sql-lock" endterm="sql-lock-title">.
|
||||||
Remember that all of these lock modes are table-level locks,
|
Remember that all of these lock modes are table-level locks,
|
||||||
even if the name contains the word
|
even if the name contains the word
|
||||||
<quote>row</quote>; the names of the lock modes are historical.
|
<quote>row</quote>; the names of the lock modes are historical.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.44 2005/03/10 23:21:20 tgl Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.45 2005/06/13 02:40:06 neilc Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="tutorial-sql">
|
<chapter id="tutorial-sql">
|
||||||
@ -269,7 +269,8 @@ COPY weather FROM '/home/user/weather.txt';
|
|||||||
where the file name for the source file must be available to the
|
where the file name for the source file must be available to the
|
||||||
backend server machine, not the client, since the backend server
|
backend server machine, not the client, since the backend server
|
||||||
reads the file directly. You can read more about the
|
reads the file directly. You can read more about the
|
||||||
<command>COPY</command> command in <xref linkend="sql-copy">.
|
<command>COPY</command> command in <xref linkend="sql-copy"
|
||||||
|
endterm="sql-copy-title">.
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.142 2005/06/10 16:31:48 momjian Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.143 2005/06/13 02:40:08 neilc Exp $
|
||||||
PostgreSQL documentation
|
PostgreSQL documentation
|
||||||
-->
|
-->
|
||||||
|
|
||||||
@ -1036,9 +1036,9 @@ testdb=>
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The commands <xref linkend="SQL-GRANT"> and
|
The commands <command>GRANT</command> and
|
||||||
<xref linkend="SQL-REVOKE">
|
<command>REVOKE</command> are used to set access privileges.
|
||||||
are used to set access privileges. See <xref linkend="SQL-GRANT">
|
See <xref linkend="sql-grant" endterm="sql-grant-title">
|
||||||
for more information.
|
for more information.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
@ -1740,10 +1740,10 @@ lo_import 152801
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The commands <xref linkend="SQL-GRANT"> and
|
The commands <command>GRANT</command> and
|
||||||
<xref linkend="SQL-REVOKE">
|
<command>REVOKE</command> are used to set access privileges.
|
||||||
are used to set access privileges. See <xref linkend="SQL-GRANT">
|
See <xref linkend="sql-grant" endterm="sql-grant-title"> for
|
||||||
for more information.
|
more information.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.324 2005/06/09 22:35:23 momjian Exp $
|
$PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.325 2005/06/13 02:40:06 neilc Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter Id="runtime">
|
<chapter Id="runtime">
|
||||||
@ -3234,8 +3234,9 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Consult <xref linkend="mvcc"> and <xref linkend="sql-set-transaction"> for more
|
Consult <xref linkend="mvcc"> and <xref
|
||||||
information.
|
linkend="sql-set-transaction"
|
||||||
|
endterm="sql-set-transaction-title"> for more information.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -3257,7 +3258,8 @@ archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Windows
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Consult <xref linkend="sql-set-transaction"> for more information.
|
Consult <xref linkend="sql-set-transaction"
|
||||||
|
endterm="sql-set-transaction-title"> for more information.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
Loading…
Reference in New Issue
Block a user