Remove unnecessary xref endterm attributes and title ids
The endterm attribute is mainly useful when the toolchain does not support automatic link target text generation for a particular situation. In the past, this was required by the man page tools for all reference page links, but that is no longer the case, and it now actually gets in the way of proper automatic link text generation. The only remaining use cases are currently xrefs to refsects.
This commit is contained in:
parent
7969145483
commit
6dcce3985b
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/advanced.sgml,v 1.59 2009/06/17 21:58:48 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/advanced.sgml,v 1.60 2010/04/03 07:22:52 petere Exp $ -->
|
||||
|
||||
<chapter id="tutorial-advanced">
|
||||
<title>Advanced Features</title>
|
||||
@ -318,7 +318,7 @@ COMMIT;
|
||||
|
||||
|
||||
<sect1 id="tutorial-window">
|
||||
<title id="tutorial-window-title">Window Functions</title>
|
||||
<title>Window Functions</title>
|
||||
|
||||
<indexterm zone="tutorial-window">
|
||||
<primary>window function</primary>
|
||||
@ -555,7 +555,7 @@ SELECT sum(salary) OVER w, avg(salary) OVER w
|
||||
More details about window functions can be found in
|
||||
<xref linkend="syntax-window-functions">,
|
||||
<xref linkend="queries-window">, and the
|
||||
<xref linkend="sql-select" endterm="sql-select-title"> reference page.
|
||||
<xref linkend="sql-select"> reference page.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/arch-dev.sgml,v 2.33 2009/10/10 01:43:45 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/arch-dev.sgml,v 2.34 2010/04/03 07:22:52 petere Exp $ -->
|
||||
|
||||
<chapter id="overview">
|
||||
<title>Overview of PostgreSQL Internals</title>
|
||||
@ -346,8 +346,8 @@
|
||||
space. In particular, this occurs when executing queries
|
||||
involving large numbers of join operations. In order to determine
|
||||
a reasonable (not necessarily optimal) query plan in a reasonable amount
|
||||
of time, <productname>PostgreSQL</productname> uses a <xref
|
||||
linkend="geqo" endterm="geqo-title"> when the number of joins
|
||||
of time, <productname>PostgreSQL</productname> uses a <firstterm>Genetic
|
||||
Query Optimizer</firstterm> (see <xref linkend="geqo">) when the number of joins
|
||||
exceeds a threshold (see <xref linkend="guc-geqo-threshold">).
|
||||
</para>
|
||||
</note>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/auto-explain.sgml,v 1.7 2010/02/20 22:24:29 adunstan Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/auto-explain.sgml,v 1.8 2010/04/03 07:22:52 petere Exp $ -->
|
||||
|
||||
<sect1 id="auto-explain">
|
||||
<title>auto_explain</title>
|
||||
@ -10,7 +10,7 @@
|
||||
<para>
|
||||
The <filename>auto_explain</filename> module provides a means for
|
||||
logging execution plans of slow statements automatically, without
|
||||
having to run <xref linkend="sql-explain" endterm="sql-explain-title">
|
||||
having to run <xref linkend="sql-explain">
|
||||
by hand. This is especially helpful for tracking down un-optimized queries
|
||||
in large applications.
|
||||
</para>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.149 2010/04/01 13:52:56 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.150 2010/04/03 07:22:52 petere Exp $ -->
|
||||
|
||||
<chapter id="backup">
|
||||
<title>Backup and Restore</title>
|
||||
@ -166,10 +166,10 @@ pg_dump -h <replaceable>host1</> <replaceable>dbname</> | psql -h <replaceable>h
|
||||
|
||||
<para>
|
||||
After restoring a backup, it is wise to run <xref
|
||||
linkend="sql-analyze" endterm="sql-analyze-title"> on each
|
||||
linkend="sql-analyze"> on each
|
||||
database so the query optimizer has useful statistics;
|
||||
see <xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
|
||||
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
|
||||
see <xref linkend="vacuum-for-statistics">
|
||||
and <xref linkend="autovacuum"> for more information.
|
||||
For more advice on how to load large amounts of data
|
||||
into <productname>PostgreSQL</> efficiently, refer to <xref
|
||||
linkend="populate">.
|
||||
@ -1293,14 +1293,14 @@ archive_command = 'local_backup_script.sh'
|
||||
deleted rows will still retain pointers. In other words, if you modify a
|
||||
table with a hash index on it then you will get incorrect query results
|
||||
on a standby server. When recovery completes it is recommended that you
|
||||
manually <xref linkend="sql-reindex" endterm="sql-reindex-title">
|
||||
manually <xref linkend="sql-reindex">
|
||||
each such index after completing a recovery operation.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
If a <xref linkend="sql-createdatabase" endterm="sql-createdatabase-title">
|
||||
If a <xref linkend="sql-createdatabase">
|
||||
command is executed while a base backup is being taken, and then
|
||||
the template database that the <command>CREATE DATABASE</> copied
|
||||
is modified while the base backup is still in progress, it is
|
||||
@ -1313,7 +1313,7 @@ archive_command = 'local_backup_script.sh'
|
||||
|
||||
<listitem>
|
||||
<para>
|
||||
<xref linkend="sql-createtablespace" endterm="sql-createtablespace-title">
|
||||
<xref linkend="sql-createtablespace">
|
||||
commands are WAL-logged with the literal absolute path, and will
|
||||
therefore be replayed as tablespace creations with the same
|
||||
absolute path. This might be undesirable if the log is being
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.224 2010/03/25 14:44:33 alvherre Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/catalogs.sgml,v 2.225 2010/04/03 07:22:52 petere Exp $ -->
|
||||
<!--
|
||||
Documentation of the system catalogs, directed toward PostgreSQL developers
|
||||
-->
|
||||
@ -354,7 +354,7 @@
|
||||
|
||||
<para>
|
||||
New aggregate functions are registered with the <xref
|
||||
linkend="sql-createaggregate" endterm="sql-createaggregate-title">
|
||||
linkend="sql-createaggregate">
|
||||
command. See <xref linkend="xaggr"> for more information about
|
||||
writing aggregate functions and the meaning of the transition
|
||||
functions, etc.
|
||||
@ -886,7 +886,7 @@
|
||||
<entry>
|
||||
<structfield>attstattarget</structfield> controls the level of detail
|
||||
of statistics accumulated for this column by
|
||||
<xref linkend="sql-analyze" endterm="sql-analyze-title">.
|
||||
<xref linkend="sql-analyze">.
|
||||
A zero value indicates that no statistics should be collected.
|
||||
A negative value says to use the system default statistics target.
|
||||
The exact meaning of positive values is data type-dependent.
|
||||
@ -1274,7 +1274,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_cast</structname> stores data type conversion
|
||||
paths, both built-in paths and those defined with
|
||||
<xref linkend="sql-createcast" endterm="sql-createcast-title">.
|
||||
<xref linkend="sql-createcast">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -1662,8 +1662,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -1962,7 +1962,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_conversion</structname> describes the
|
||||
available encoding conversion procedures. See
|
||||
<xref linkend="sql-createconversion" endterm="sql-createconversion-title">
|
||||
<xref linkend="sql-createconversion">
|
||||
for more information.
|
||||
</para>
|
||||
|
||||
@ -2047,7 +2047,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_database</structname> stores information about
|
||||
the available databases. Databases are created with the <xref
|
||||
linkend="sql-createdatabase" endterm="sql-createdatabase-title"> command.
|
||||
linkend="sql-createdatabase"> command.
|
||||
Consult <xref linkend="managing-databases"> for details about the meaning
|
||||
of some of the parameters.
|
||||
</para>
|
||||
@ -2185,8 +2185,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -2467,7 +2467,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_description</> stores optional descriptions
|
||||
(comments) for each database object. Descriptions can be manipulated
|
||||
with the <xref linkend="sql-comment" endterm="sql-comment-title"> command and viewed with
|
||||
with the <xref linkend="sql-comment"> command and viewed with
|
||||
<application>psql</application>'s <literal>\d</literal> commands.
|
||||
Descriptions of many built-in system objects are provided in the initial
|
||||
contents of <structname>pg_description</structname>.
|
||||
@ -2643,8 +2643,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -2732,8 +2732,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -3000,7 +3000,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_language</structname> registers
|
||||
languages in which you can write functions or stored procedures.
|
||||
See <xref linkend="sql-createlanguage" endterm="sql-createlanguage-title">
|
||||
See <xref linkend="sql-createlanguage">
|
||||
and <xref linkend="xplang"> for more information about language handlers.
|
||||
</para>
|
||||
|
||||
@ -3076,7 +3076,7 @@
|
||||
<entry>
|
||||
This references a function that is responsible for executing
|
||||
<quote>inline</> anonymous code blocks
|
||||
(<xref linkend="sql-do" endterm="sql-do-title"> blocks).
|
||||
(<xref linkend="sql-do"> blocks).
|
||||
Zero if inline blocks are not supported
|
||||
</entry>
|
||||
</row>
|
||||
@ -3098,8 +3098,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -3231,8 +3231,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -3290,8 +3290,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -3418,7 +3418,7 @@
|
||||
|
||||
<para>
|
||||
The catalog <structname>pg_operator</> stores information about operators.
|
||||
See <xref linkend="sql-createoperator" endterm="sql-createoperator-title">
|
||||
See <xref linkend="sql-createoperator">
|
||||
and <xref linkend="xoper"> for more information.
|
||||
</para>
|
||||
|
||||
@ -3745,7 +3745,7 @@
|
||||
|
||||
<para>
|
||||
The catalog <structname>pg_proc</> stores information about functions (or procedures).
|
||||
See <xref linkend="sql-createfunction" endterm="sql-createfunction-title">
|
||||
See <xref linkend="sql-createfunction">
|
||||
and <xref linkend="xfunc"> for more information.
|
||||
</para>
|
||||
|
||||
@ -4011,8 +4011,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -4368,8 +4368,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_shdescription</structname> stores optional
|
||||
descriptions (comments) for shared database objects. Descriptions can be
|
||||
manipulated with the <xref linkend="sql-comment"
|
||||
endterm="sql-comment-title"> command and viewed with
|
||||
manipulated with the <xref linkend="sql-comment"> command and viewed with
|
||||
<application>psql</application>'s <literal>\d</literal> commands.
|
||||
</para>
|
||||
|
||||
@ -4437,7 +4436,7 @@
|
||||
<para>
|
||||
The catalog <structname>pg_statistic</structname> stores
|
||||
statistical data about the contents of the database. Entries are
|
||||
created by <xref linkend="sql-analyze" endterm="sql-analyze-title">
|
||||
created by <xref linkend="sql-analyze">
|
||||
and subsequently used by the query planner. Note that all the
|
||||
statistical data is inherently approximate, even assuming that it
|
||||
is up-to-date.
|
||||
@ -4668,8 +4667,8 @@
|
||||
<entry></entry>
|
||||
<entry>
|
||||
Access privileges; see
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">
|
||||
for details
|
||||
</entry>
|
||||
</row>
|
||||
@ -4697,7 +4696,7 @@
|
||||
|
||||
<para>
|
||||
The catalog <structname>pg_trigger</structname> stores triggers on tables.
|
||||
See <xref linkend="sql-createtrigger" endterm="sql-createtrigger-title">
|
||||
See <xref linkend="sql-createtrigger">
|
||||
for more information.
|
||||
</para>
|
||||
|
||||
@ -5250,9 +5249,9 @@
|
||||
<para>
|
||||
The catalog <structname>pg_type</structname> stores information about data
|
||||
types. Base types and enum types (scalar types) are created with
|
||||
<xref linkend="sql-createtype" endterm="sql-createtype-title">, and
|
||||
<xref linkend="sql-createtype">, and
|
||||
domains with
|
||||
<xref linkend="sql-createdomain" endterm="sql-createdomain-title">.
|
||||
<xref linkend="sql-createdomain">.
|
||||
A composite type is automatically created for each table in the database, to
|
||||
represent the row structure of the table. It is also possible to create
|
||||
composite types with <command>CREATE TYPE AS</command>.
|
||||
@ -5917,7 +5916,7 @@
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
via the <xref linkend="sql-declare" endterm="sql-declare-title">
|
||||
via the <xref linkend="sql-declare">
|
||||
statement in SQL
|
||||
</para>
|
||||
</listitem>
|
||||
@ -6414,8 +6413,7 @@
|
||||
<para>
|
||||
The <structname>pg_prepared_statements</structname> view displays
|
||||
all the prepared statements that are available in the current
|
||||
session. See <xref linkend="sql-prepare"
|
||||
endterm="sql-prepare-title"> for more information about prepared
|
||||
session. See <xref linkend="sql-prepare"> for more information about prepared
|
||||
statements.
|
||||
</para>
|
||||
|
||||
@ -6423,8 +6421,7 @@
|
||||
<structname>pg_prepared_statements</structname> contains one row
|
||||
for each prepared statement. Rows are added to the view when a new
|
||||
prepared statement is created and removed when a prepared statement
|
||||
is released (for example, via the <xref linkend="sql-deallocate"
|
||||
endterm="sql-deallocate-title"> command).
|
||||
is released (for example, via the <xref linkend="sql-deallocate"> command).
|
||||
</para>
|
||||
|
||||
<table>
|
||||
@ -6504,8 +6501,7 @@
|
||||
<para>
|
||||
The view <structname>pg_prepared_xacts</structname> displays
|
||||
information about transactions that are currently prepared for two-phase
|
||||
commit (see <xref linkend="sql-prepare-transaction"
|
||||
endterm="sql-prepare-transaction-title"> for details).
|
||||
commit (see <xref linkend="sql-prepare-transaction"> for details).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -6780,8 +6776,8 @@
|
||||
<para>
|
||||
The view <structname>pg_settings</structname> provides access to
|
||||
run-time parameters of the server. It is essentially an alternative
|
||||
interface to the <xref linkend="sql-show" endterm="sql-show-title">
|
||||
and <xref linkend="sql-set" endterm="sql-set-title"> commands.
|
||||
interface to the <xref linkend="sql-show">
|
||||
and <xref linkend="sql-set"> commands.
|
||||
It also provides access to some facts about each parameter that are
|
||||
not directly available from <command>SHOW</>, such as minimum and
|
||||
maximum values.
|
||||
@ -6900,7 +6896,7 @@
|
||||
The <structname>pg_settings</structname> view cannot be inserted into or
|
||||
deleted from, but it can be updated. An <command>UPDATE</command> applied
|
||||
to a row of <structname>pg_settings</structname> is equivalent to executing
|
||||
the <xref linkend="sql-set" endterm="sql-set-title"> command on that named
|
||||
the <xref linkend="sql-set"> command on that named
|
||||
parameter. The change only affects the value used by the current
|
||||
session. If an <command>UPDATE</command> is issued within a transaction
|
||||
that is later aborted, the effects of the <command>UPDATE</command> command
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.135 2010/03/31 20:18:10 heikki Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/client-auth.sgml,v 1.136 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<chapter id="client-authentication">
|
||||
<title>Client Authentication</title>
|
||||
@ -785,8 +785,8 @@ omicron bryanh guest1
|
||||
separate from operating system user passwords. The password for
|
||||
each database user is stored in the <literal>pg_authid</> system
|
||||
catalog. Passwords can be managed with the SQL commands
|
||||
<xref linkend="sql-createuser" endterm="sql-createuser-title"> and
|
||||
<xref linkend="sql-alteruser" endterm="sql-alteruser-title">,
|
||||
<xref linkend="sql-createuser"> and
|
||||
<xref linkend="sql-alteruser">,
|
||||
e.g., <userinput>CREATE USER foo WITH PASSWORD 'secret'</userinput>.
|
||||
If no password has been set up for a user, the stored password
|
||||
is null and password authentication will always fail for that user.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.261 2010/03/17 18:03:55 mha Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.262 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<chapter Id="runtime-config">
|
||||
<title>Server Configuration</title>
|
||||
@ -135,8 +135,8 @@ env PGOPTIONS='-c geqo=off' psql
|
||||
Furthermore, it is possible to assign a set of parameter settings to
|
||||
a user or a database. Whenever a session is started, the default
|
||||
settings for the user and database involved are loaded. The
|
||||
commands <xref linkend="sql-alteruser" endterm="sql-alteruser-title">
|
||||
and <xref linkend="sql-alterdatabase" endterm="sql-alterdatabase-title">,
|
||||
commands <xref linkend="sql-alteruser">
|
||||
and <xref linkend="sql-alterdatabase">,
|
||||
respectively, are used to configure these settings. Per-database
|
||||
settings override anything received from the
|
||||
<command>postgres</command> command-line or the configuration
|
||||
@ -146,7 +146,7 @@ env PGOPTIONS='-c geqo=off' psql
|
||||
|
||||
<para>
|
||||
Some parameters can be changed in individual <acronym>SQL</acronym>
|
||||
sessions with the <xref linkend="SQL-SET" endterm="SQL-SET-title">
|
||||
sessions with the <xref linkend="SQL-SET">
|
||||
command, for example:
|
||||
<screen>
|
||||
SET ENABLE_SEQSCAN TO OFF;
|
||||
@ -161,7 +161,7 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The <xref linkend="SQL-SHOW" endterm="SQL-SHOW-title">
|
||||
The <xref linkend="SQL-SHOW">
|
||||
command allows inspection of the current values of all parameters.
|
||||
</para>
|
||||
|
||||
@ -654,8 +654,8 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
<listitem>
|
||||
<para>
|
||||
When a password is specified in <xref
|
||||
linkend="sql-createuser" endterm="sql-createuser-title"> or
|
||||
<xref linkend="sql-alteruser" endterm="sql-alteruser-title">
|
||||
linkend="sql-createuser"> or
|
||||
<xref linkend="sql-alteruser">
|
||||
without writing either <literal>ENCRYPTED</> or
|
||||
<literal>UNENCRYPTED</>, this parameter determines whether the
|
||||
password is to be encrypted. The default is <literal>on</>
|
||||
@ -836,8 +836,7 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
<para>
|
||||
Sets the maximum number of transactions that can be in the
|
||||
<quote>prepared</> state simultaneously (see <xref
|
||||
linkend="sql-prepare-transaction"
|
||||
endterm="sql-prepare-transaction-title">).
|
||||
linkend="sql-prepare-transaction">).
|
||||
Setting this parameter to zero (which is the default)
|
||||
disables the prepared-transaction feature.
|
||||
This parameter can only be set at server start.
|
||||
@ -1039,14 +1038,12 @@ SET ENABLE_SEQSCAN TO OFF;
|
||||
</sect2>
|
||||
|
||||
<sect2 id="runtime-config-resource-vacuum-cost">
|
||||
<title id="runtime-config-resource-vacuum-cost-title">
|
||||
Cost-Based Vacuum Delay
|
||||
</title>
|
||||
<title>Cost-Based Vacuum Delay</title>
|
||||
|
||||
<para>
|
||||
During the execution of <xref linkend="sql-vacuum"
|
||||
endterm="sql-vacuum-title"> and <xref linkend="sql-analyze"
|
||||
endterm="sql-analyze-title"> commands, the system maintains an
|
||||
During the execution of <xref linkend="sql-vacuum">
|
||||
and <xref linkend="sql-analyze">
|
||||
commands, the system maintains an
|
||||
internal counter that keeps track of the estimated cost of the
|
||||
various I/O operations that are performed. When the accumulated
|
||||
cost reaches a limit (specified by
|
||||
@ -1908,10 +1905,9 @@ archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
|
||||
of these configuration parameters to force the optimizer to
|
||||
choose a different plan.
|
||||
Better ways to improve the quality of the
|
||||
plans chosen by the optimizer include adjusting the <xref
|
||||
linkend="runtime-config-query-constants"
|
||||
endterm="runtime-config-query-constants-title">, running <xref
|
||||
linkend="sql-analyze" endterm="sql-analyze-title"> manually, increasing
|
||||
plans chosen by the optimizer include adjusting the planer cost
|
||||
constants (see <xref linkend="runtime-config-query-constants">),
|
||||
running <xref linkend="sql-analyze"> manually, increasing
|
||||
the value of the <xref
|
||||
linkend="guc-default-statistics-target"> configuration parameter,
|
||||
and increasing the amount of statistics collected for
|
||||
@ -2058,9 +2054,7 @@ archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
|
||||
</variablelist>
|
||||
</sect2>
|
||||
<sect2 id="runtime-config-query-constants">
|
||||
<title id="runtime-config-query-constants-title">
|
||||
Planner Cost Constants
|
||||
</title>
|
||||
<title>Planner Cost Constants</title>
|
||||
|
||||
<para>
|
||||
The <firstterm>cost</> variables described in this section are measured
|
||||
@ -4182,8 +4176,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
<para>
|
||||
This parameter is normally on. When set to <literal>off</>, it
|
||||
disables validation of the function body string during <xref
|
||||
linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title">. Disabling validation is
|
||||
linkend="sql-createfunction">. Disabling validation is
|
||||
occasionally useful to avoid problems such as forward references
|
||||
when restoring function definitions from a dump.
|
||||
</para>
|
||||
@ -4210,8 +4203,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
|
||||
<para>
|
||||
Consult <xref linkend="mvcc"> and <xref
|
||||
linkend="sql-set-transaction"
|
||||
endterm="sql-set-transaction-title"> for more information.
|
||||
linkend="sql-set-transaction"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -4233,8 +4225,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Consult <xref linkend="sql-set-transaction"
|
||||
endterm="sql-set-transaction-title"> for more information.
|
||||
Consult <xref linkend="sql-set-transaction"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -4251,7 +4242,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
superuser privilege and results in discarding any previously cached
|
||||
query plans. Possible values are <literal>origin</> (the default),
|
||||
<literal>replica</> and <literal>local</>.
|
||||
See <xref linkend="sql-altertable" endterm="sql-altertable-title"> for
|
||||
See <xref linkend="sql-altertable"> for
|
||||
more information.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.247 2010/03/29 22:01:08 petere Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/datatype.sgml,v 1.248 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<chapter id="datatype">
|
||||
<title id="datatype-title">Data Types</title>
|
||||
<title>Data Types</title>
|
||||
|
||||
<indexterm zone="datatype">
|
||||
<primary>data type</primary>
|
||||
@ -16,7 +16,7 @@
|
||||
<productname>PostgreSQL</productname> has a rich set of native data
|
||||
types available to users. Users can add new types to
|
||||
<productname>PostgreSQL</productname> using the <xref
|
||||
linkend="sql-createtype" endterm="sql-createtype-title"> command.
|
||||
linkend="sql-createtype"> command.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -2843,7 +2843,7 @@ SELECT * FROM test1 WHERE a;
|
||||
|
||||
<para>
|
||||
Enum types are created using the <xref
|
||||
linkend="sql-createtype" endterm="sql-createtype-title"> command,
|
||||
linkend="sql-createtype"> command,
|
||||
for example:
|
||||
|
||||
<programlisting>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/dblink.sgml,v 1.10 2010/01/06 19:07:05 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/dblink.sgml,v 1.11 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<sect1 id="dblink">
|
||||
<title>dblink</title>
|
||||
@ -51,9 +51,9 @@
|
||||
the corresponding foreign-data wrapper. See the example below, as
|
||||
well as the following:
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createforeigndatawrapper" endterm="sql-createforeigndatawrapper-title"></member>
|
||||
<member><xref linkend="sql-createserver" endterm="sql-createserver-title"></member>
|
||||
<member><xref linkend="sql-createusermapping" endterm="sql-createusermapping-title"></member>
|
||||
<member><xref linkend="sql-createforeigndatawrapper"></member>
|
||||
<member><xref linkend="sql-createserver"></member>
|
||||
<member><xref linkend="sql-createusermapping"></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.91 2010/04/01 01:18:17 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.92 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<chapter id="ddl">
|
||||
<title>Data Definition</title>
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
<para>
|
||||
To create a table, you use the aptly named <xref
|
||||
linkend="sql-createtable" endterm="sql-createtable-title"> command.
|
||||
linkend="sql-createtable"> command.
|
||||
In this command you specify at least a name for the new table, the
|
||||
names of the columns and the data type of each column. For
|
||||
example:
|
||||
@ -138,7 +138,7 @@ CREATE TABLE products (
|
||||
|
||||
<para>
|
||||
If you no longer need a table, you can remove it using the <xref
|
||||
linkend="sql-droptable" endterm="sql-droptable-title"> command.
|
||||
linkend="sql-droptable"> command.
|
||||
For example:
|
||||
<programlisting>
|
||||
DROP TABLE my_first_table;
|
||||
@ -842,7 +842,7 @@ CREATE TABLE order_items (
|
||||
If the foreign key references a unique constraint, there are some
|
||||
additional possibilities regarding how null values are matched.
|
||||
These are explained in the reference documentation for
|
||||
<xref linkend="sql-createtable" endterm="sql-createtable-title">.
|
||||
<xref linkend="sql-createtable">.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
@ -1126,7 +1126,7 @@ CREATE TABLE circles (
|
||||
</itemizedlist>
|
||||
|
||||
All these actions are performed using the
|
||||
<xref linkend="sql-altertable" endterm="sql-altertable-title">
|
||||
<xref linkend="sql-altertable">
|
||||
command, whose reference page contains details beyond those given
|
||||
here.
|
||||
</para>
|
||||
@ -1393,7 +1393,7 @@ ALTER TABLE products RENAME TO items;
|
||||
object vary depending on the object's type (table, function, etc).
|
||||
For complete information on the different types of privileges
|
||||
supported by <productname>PostgreSQL</productname>, refer to the
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> reference
|
||||
<xref linkend="sql-grant"> reference
|
||||
page. The following sections and chapters will also show you how
|
||||
those privileges are used.
|
||||
</para>
|
||||
@ -1406,7 +1406,7 @@ ALTER TABLE products RENAME TO items;
|
||||
<note>
|
||||
<para>
|
||||
To change the owner of a table, index, sequence, or view, use the
|
||||
<xref linkend="sql-altertable" endterm="sql-altertable-title">
|
||||
<xref linkend="sql-altertable">
|
||||
command. There are corresponding <literal>ALTER</> commands for
|
||||
other object types.
|
||||
</para>
|
||||
@ -1453,9 +1453,8 @@ REVOKE ALL ON accounts FROM PUBLIC;
|
||||
the right to grant it in turn to others. If the grant option is
|
||||
subsequently revoked then all who received the privilege from that
|
||||
recipient (directly or through a chain of grants) will lose the
|
||||
privilege. For details see the <xref linkend="sql-grant"
|
||||
endterm="sql-grant-title"> and <xref linkend="sql-revoke"
|
||||
endterm="sql-revoke-title"> reference pages.
|
||||
privilege. For details see the <xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke"> reference pages.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
@ -1536,8 +1535,8 @@ REVOKE ALL ON accounts FROM PUBLIC;
|
||||
</indexterm>
|
||||
|
||||
<para>
|
||||
To create a schema, use the <xref linkend="sql-createschema"
|
||||
endterm="sql-createschema-title"> command. Give the schema a name
|
||||
To create a schema, use the <xref linkend="sql-createschema">
|
||||
command. Give the schema a name
|
||||
of your choice. For example:
|
||||
<programlisting>
|
||||
CREATE SCHEMA myschema;
|
||||
@ -2109,11 +2108,11 @@ VALUES ('New York', NULL, NULL, 'NY');
|
||||
<para>
|
||||
Table inheritance is typically established when the child table is
|
||||
created, using the <literal>INHERITS</> clause of the
|
||||
<xref linkend="sql-createtable" endterm="sql-createtable-title">
|
||||
<xref linkend="sql-createtable">
|
||||
statement.
|
||||
Alternatively, a table which is already defined in a compatible way can
|
||||
have a new parent relationship added, using the <literal>INHERIT</literal>
|
||||
variant of <xref linkend="sql-altertable" endterm="sql-altertable-title">.
|
||||
variant of <xref linkend="sql-altertable">.
|
||||
To do this the new child table must already include columns with
|
||||
the same names and types as the columns of the parent. It must also include
|
||||
check constraints with the same names and check expressions as those of the
|
||||
@ -2145,7 +2144,7 @@ VALUES ('New York', NULL, NULL, 'NY');
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<xref linkend="sql-altertable" endterm="sql-altertable-title"> will
|
||||
<xref linkend="sql-altertable"> will
|
||||
propagate any changes in column data definitions and check
|
||||
constraints down the inheritance hierarchy. Again, dropping
|
||||
columns that are depended on by other tables is only possible when using
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/dfunc.sgml,v 1.35 2007/02/01 00:28:16 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/dfunc.sgml,v 1.36 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<sect2 id="dfunc">
|
||||
<title id="dfunc-title">Compiling and Linking Dynamically-Loaded Functions</title>
|
||||
<title>Compiling and Linking Dynamically-Loaded Functions</title>
|
||||
|
||||
<para>
|
||||
Before you are able to use your
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.21 2009/09/11 12:53:24 petere Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/dml.sgml,v 1.22 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<chapter id="dml">
|
||||
<title>Data Manipulation</title>
|
||||
@ -37,8 +37,8 @@
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To create a new row, use the <xref linkend="sql-insert"
|
||||
endterm="sql-insert-title"> command. The command requires the
|
||||
To create a new row, use the <xref linkend="sql-insert">
|
||||
command. The command requires the
|
||||
table name and column values. For
|
||||
example, consider the products table from <xref linkend="ddl">:
|
||||
<programlisting>
|
||||
@ -105,9 +105,9 @@ INSERT INTO products (product_no, name, price) VALUES
|
||||
<tip>
|
||||
<para>
|
||||
When inserting a lot of data at the same time, considering using
|
||||
the <xref linkend="sql-copy" endterm="sql-copy-title"> command.
|
||||
It is not as flexible as the <xref linkend="sql-insert"
|
||||
endterm="sql-insert-title"> command, but is more efficient. Refer
|
||||
the <xref linkend="sql-copy"> command.
|
||||
It is not as flexible as the <xref linkend="sql-insert">
|
||||
command, but is more efficient. Refer
|
||||
to <xref linkend="populate"> for more information on improving
|
||||
bulk loading performance.
|
||||
</para>
|
||||
@ -133,8 +133,8 @@ INSERT INTO products (product_no, name, price) VALUES
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To update existing rows, use the <xref linkend="sql-update"
|
||||
endterm="sql-update-title"> command. This requires
|
||||
To update existing rows, use the <xref linkend="sql-update">
|
||||
command. This requires
|
||||
three pieces of information:
|
||||
<orderedlist spacing="compact">
|
||||
<listitem>
|
||||
@ -235,7 +235,7 @@ UPDATE mytable SET a = 5, b = 3, c = 1 WHERE a > 0;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
You use the <xref linkend="sql-delete" endterm="sql-delete-title">
|
||||
You use the <xref linkend="sql-delete">
|
||||
command to remove rows; the syntax is very similar to the
|
||||
<command>UPDATE</command> command. For instance, to remove all
|
||||
rows from the products table that have a price of 10, use:
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/extend.sgml,v 1.37 2008/07/16 01:30:21 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/extend.sgml,v 1.38 2010/04/03 07:22:53 petere Exp $ -->
|
||||
|
||||
<chapter id="extend">
|
||||
<title>Extending <acronym>SQL</acronym></title>
|
||||
@ -130,7 +130,7 @@
|
||||
<para>
|
||||
Composite types, or row types, are created whenever the user
|
||||
creates a table. It is also possible to use <xref
|
||||
linkend="sql-createtype" endterm="sql-createtype-title"> to
|
||||
linkend="sql-createtype"> to
|
||||
define a <quote>stand-alone</> composite type with no associated
|
||||
table. A composite type is simply a list of types with
|
||||
associated field names. A value of a composite type is a row or
|
||||
@ -152,7 +152,7 @@
|
||||
|
||||
<para>
|
||||
Domains can be created using the <acronym>SQL</> command
|
||||
<xref linkend="sql-createdomain" endterm="sql-createdomain-title">.
|
||||
<xref linkend="sql-createdomain">.
|
||||
Their creation and use is not discussed in this chapter.
|
||||
</para>
|
||||
</sect2>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.510 2010/03/18 15:29:44 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.511 2010/04/03 07:22:54 petere Exp $ -->
|
||||
|
||||
<chapter id="functions">
|
||||
<title>Functions and Operators</title>
|
||||
@ -8877,7 +8877,7 @@ table2-mapping
|
||||
functions for operating on <firstterm>sequence objects</firstterm>.
|
||||
Sequence objects (also called sequence generators or just
|
||||
sequences) are special single-row tables created with <xref
|
||||
linkend="sql-createsequence" endterm="sql-createsequence-title">.
|
||||
linkend="sql-createsequence">.
|
||||
A sequence object is usually used to generate unique identifiers
|
||||
for rows of a table. The sequence functions, listed in <xref
|
||||
linkend="functions-sequence-table">, provide simple, multiuser-safe
|
||||
@ -9070,7 +9070,7 @@ SELECT setval('foo', 42, false); <lineannotation>Next <function>nextval</> wi
|
||||
If a sequence object has been created with default parameters,
|
||||
successive <function>nextval</function> calls will return successive values
|
||||
beginning with 1. Other behaviors can be obtained by using
|
||||
special parameters in the <xref linkend="sql-createsequence" endterm="sql-createsequence-title"> command;
|
||||
special parameters in the <xref linkend="sql-createsequence"> command;
|
||||
see its command reference page for more information.
|
||||
</para>
|
||||
|
||||
@ -11657,11 +11657,11 @@ postgres=# select * from unnest2(array[[1,2],[3,4]]);
|
||||
<para>
|
||||
The <function>session_user</function> is normally the user who initiated
|
||||
the current database connection; but superusers can change this setting
|
||||
with <xref linkend="sql-set-session-authorization" endterm="sql-set-session-authorization-title">.
|
||||
with <xref linkend="sql-set-session-authorization">.
|
||||
The <function>current_user</function> is the user identifier
|
||||
that is applicable for permission checking. Normally it is equal
|
||||
to the session user, but it can be changed with
|
||||
<xref linkend="sql-set-role" endterm="sql-set-role-title">.
|
||||
<xref linkend="sql-set-role">.
|
||||
It also changes during the execution of
|
||||
functions with the attribute <literal>SECURITY DEFINER</literal>.
|
||||
In Unix parlance, the session user is the <quote>real user</quote> and
|
||||
@ -11695,7 +11695,7 @@ SET search_path TO <replaceable>schema</> <optional>, <replaceable>schema</>, ..
|
||||
<para>
|
||||
<function>pg_listening_channels</function> returns a set of names of
|
||||
channels that the current session is listening to. See <xref
|
||||
linkend="sql-listen" endterm="sql-listen-title"> for more information.
|
||||
linkend="sql-listen"> for more information.
|
||||
</para>
|
||||
|
||||
<indexterm>
|
||||
@ -12653,8 +12653,8 @@ SELECT typlen FROM pg_type WHERE oid = pg_typeof(33);
|
||||
|
||||
<para>
|
||||
The functions shown in <xref linkend="functions-info-comment-table">
|
||||
extract comments previously stored with the <xref linkend="sql-comment"
|
||||
endterm="sql-comment-title"> command. A null value is returned if no
|
||||
extract comments previously stored with the <xref linkend="sql-comment">
|
||||
command. A null value is returned if no
|
||||
comment could be found for the specified parameters.
|
||||
</para>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/geqo.sgml,v 1.42 2009/08/10 22:41:38 alvherre Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/geqo.sgml,v 1.43 2010/04/03 07:22:54 petere Exp $ -->
|
||||
|
||||
<chapter id="geqo">
|
||||
<chapterinfo>
|
||||
@ -25,7 +25,7 @@
|
||||
<date>1997-10-02</date>
|
||||
</chapterinfo>
|
||||
|
||||
<title id="geqo-title">Genetic Query Optimizer</title>
|
||||
<title>Genetic Query Optimizer</title>
|
||||
|
||||
<para>
|
||||
<note>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/gin.sgml,v 2.19 2009/04/09 19:07:44 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/gin.sgml,v 2.20 2010/04/03 07:22:54 petere Exp $ -->
|
||||
|
||||
<chapter id="GIN">
|
||||
<title>GIN Indexes</title>
|
||||
@ -241,8 +241,8 @@
|
||||
If consistent response time is more important than update speed,
|
||||
use of pending entries can be disabled by turning off the
|
||||
<literal>FASTUPDATE</literal> storage parameter for a
|
||||
<acronym>GIN</acronym> index. See <xref linkend="sql-createindex"
|
||||
endterm="sql-createindex-title"> for details.
|
||||
<acronym>GIN</acronym> index. See <xref linkend="sql-createindex">
|
||||
for details.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/high-availability.sgml,v 1.57 2010/03/31 20:41:50 heikki Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/high-availability.sgml,v 1.58 2010/04/03 07:22:54 petere Exp $ -->
|
||||
|
||||
<chapter id="high-availability">
|
||||
<title>High Availability, Load Balancing, and Replication</title>
|
||||
@ -201,9 +201,8 @@ protocol to make nodes agree on a serializable transactional order.
|
||||
must query such values from a single server and then use those
|
||||
values in write queries. Also, care must be taken that all
|
||||
transactions either commit or abort on all servers, perhaps
|
||||
using two-phase commit (<xref linkend="sql-prepare-transaction"
|
||||
endterm="sql-prepare-transaction-title"> and <xref
|
||||
linkend="sql-commit-prepared" endterm="sql-commit-prepared-title">.
|
||||
using two-phase commit (<xref linkend="sql-prepare-transaction">
|
||||
and <xref linkend="sql-commit-prepared">.
|
||||
<productname>Pgpool-II</> and <productname>Sequoia</> are examples of
|
||||
this type of replication.
|
||||
</para>
|
||||
@ -250,9 +249,8 @@ protocol to make nodes agree on a serializable transactional order.
|
||||
<para>
|
||||
<productname>PostgreSQL</> does not offer this type of replication,
|
||||
though <productname>PostgreSQL</> two-phase commit (<xref
|
||||
linkend="sql-prepare-transaction"
|
||||
endterm="sql-prepare-transaction-title"> and <xref
|
||||
linkend="sql-commit-prepared" endterm="sql-commit-prepared-title">)
|
||||
linkend="sql-prepare-transaction"> and <xref
|
||||
linkend="sql-commit-prepared">)
|
||||
can be used to implement this in application code or middleware.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -552,7 +550,7 @@ protocol to make nodes agree on a serializable transactional order.
|
||||
associated with tablespaces will be passed across unmodified, so both
|
||||
primary and standby servers must have the same mount paths for
|
||||
tablespaces if that feature is used. Keep in mind that if
|
||||
<xref linkend="sql-createtablespace" endterm="sql-createtablespace-title">
|
||||
<xref linkend="sql-createtablespace">
|
||||
is executed on the primary, any new mount point needed for it must
|
||||
be created on the primary and all standby servers before the command
|
||||
is executed. Hardware need not be exactly the same, but experience shows
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.80 2010/01/01 21:53:49 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/indices.sgml,v 1.81 2010/04/03 07:22:54 petere Exp $ -->
|
||||
|
||||
<chapter id="indexes">
|
||||
<title id="indexes-title">Indexes</title>
|
||||
<title>Indexes</title>
|
||||
|
||||
<indexterm zone="indexes">
|
||||
<primary>index</primary>
|
||||
@ -997,7 +997,7 @@ SELECT am.amname AS index_method,
|
||||
maintenance or tuning, it is still important to check
|
||||
which indexes are actually used by the real-life query workload.
|
||||
Examining index usage for an individual query is done with the
|
||||
<xref linkend="sql-explain" endterm="sql-explain-title">
|
||||
<xref linkend="sql-explain">
|
||||
command; its application for this purpose is
|
||||
illustrated in <xref linkend="using-explain">.
|
||||
It is also possible to gather overall statistics about index usage
|
||||
@ -1015,7 +1015,7 @@ SELECT am.amname AS index_method,
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
Always run <xref linkend="sql-analyze" endterm="sql-analyze-title">
|
||||
Always run <xref linkend="sql-analyze">
|
||||
first. This command
|
||||
collects statistics about the distribution of the values in the
|
||||
table. This information is required to estimate the number of rows
|
||||
@ -1025,8 +1025,8 @@ SELECT am.amname AS index_method,
|
||||
almost certain to be inaccurate. Examining an application's
|
||||
index usage without having run <command>ANALYZE</command> is
|
||||
therefore a lost cause.
|
||||
See <xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
|
||||
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
|
||||
See <xref linkend="vacuum-for-statistics">
|
||||
and <xref linkend="autovacuum"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
@ -1093,7 +1093,7 @@ SELECT am.amname AS index_method,
|
||||
An inaccurate selectivity estimate is due to
|
||||
insufficient statistics. It might be possible to improve this by
|
||||
tuning the statistics-gathering parameters (see
|
||||
<xref linkend="sql-altertable" endterm="sql-altertable-title">).
|
||||
<xref linkend="sql-altertable">).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.303 2010/02/27 03:41:34 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.304 2010/04/03 07:22:54 petere Exp $ -->
|
||||
|
||||
<chapter id="libpq">
|
||||
<title><application>libpq</application> - C Library</title>
|
||||
@ -1804,12 +1804,12 @@ PGresult *PQprepare(PGconn *conn,
|
||||
</variablelist>
|
||||
|
||||
Prepared statements for use with <function>PQexecPrepared</> can also
|
||||
be created by executing SQL <xref linkend="sql-prepare"
|
||||
endterm="sql-prepare-title"> statements. (But <function>PQprepare</>
|
||||
be created by executing SQL <xref linkend="sql-prepare">
|
||||
statements. (But <function>PQprepare</>
|
||||
is more flexible since it does not require parameter types to be
|
||||
pre-specified.) Also, although there is no <application>libpq</>
|
||||
function for deleting a prepared statement, the SQL <xref
|
||||
linkend="sql-deallocate" endterm="sql-deallocate-title"> statement
|
||||
linkend="sql-deallocate"> statement
|
||||
can be used for that purpose.
|
||||
</para>
|
||||
|
||||
@ -4279,7 +4279,7 @@ typedef struct {
|
||||
0 indicates the overall copy format is textual (rows separated by
|
||||
newlines, columns separated by separator characters, etc). 1
|
||||
indicates the overall copy format is binary. See <xref
|
||||
linkend="sql-copy" endterm="sql-copy-title"> for more information.
|
||||
linkend="sql-copy"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -4359,8 +4359,7 @@ typedef struct {
|
||||
into buffer loads of any convenient size. Buffer-load boundaries
|
||||
have no semantic significance when sending. The contents of the
|
||||
data stream must match the data format expected by the
|
||||
<command>COPY</> command; see <xref linkend="sql-copy"
|
||||
endterm="sql-copy-title"> for details.
|
||||
<command>COPY</> command; see <xref linkend="sql-copy"> for details.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -6102,8 +6101,8 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
|
||||
<para>
|
||||
The following environment variables can be used to specify default
|
||||
behavior for each <productname>PostgreSQL</productname> session. (See
|
||||
also the <xref linkend="sql-alteruser" endterm="sql-alteruser-title">
|
||||
and <xref linkend="sql-alterdatabase" endterm="sql-alterdatabase-title">
|
||||
also the <xref linkend="sql-alteruser">
|
||||
and <xref linkend="sql-alterdatabase">
|
||||
commands for ways to set default behavior on a per-user or per-database
|
||||
basis.)
|
||||
|
||||
@ -6151,8 +6150,8 @@ myEventProc(PGEventId evtId, void *evtInfo, void *passThrough)
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
Refer to the <acronym>SQL</acronym> command <xref linkend="sql-set"
|
||||
endterm="sql-set-title"> for information on correct values for these
|
||||
Refer to the <acronym>SQL</acronym> command <xref linkend="sql-set">
|
||||
for information on correct values for these
|
||||
environment variables.
|
||||
</para>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/lobj.sgml,v 1.52 2010/02/17 04:19:37 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/lobj.sgml,v 1.53 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="largeObjects">
|
||||
<title id="largeObjects-title">Large Objects</title>
|
||||
<title>Large Objects</title>
|
||||
|
||||
<indexterm zone="largeobjects"><primary>large object</></>
|
||||
<indexterm><primary>BLOB</><see>large object</></>
|
||||
@ -63,8 +63,8 @@
|
||||
<para>
|
||||
As of <productname>PostgreSQL</> 9.0, large objects have an owner
|
||||
and a set of access permissions, which can be managed using
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> and
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">.
|
||||
<xref linkend="sql-grant"> and
|
||||
<xref linkend="sql-revoke">.
|
||||
For compatibility with prior releases, see
|
||||
<xref linkend="guc-lo-compat-privileges">.
|
||||
<literal>SELECT</literal> privileges are required to read a large
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.101 2010/03/17 17:12:31 petere Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.102 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="maintenance">
|
||||
<title>Routine Database Maintenance Tasks</title>
|
||||
@ -87,7 +87,7 @@
|
||||
|
||||
<para>
|
||||
<productname>PostgreSQL</productname>'s
|
||||
<xref linkend="sql-vacuum" endterm="sql-vacuum-title"> command has to
|
||||
<xref linkend="sql-vacuum"> command has to
|
||||
process each table on a regular basis for several reasons:
|
||||
|
||||
<orderedlist>
|
||||
@ -210,7 +210,7 @@
|
||||
their busiest tables as often as once every few minutes.) If you have
|
||||
multiple databases in a cluster, don't forget to
|
||||
<command>VACUUM</command> each one; the program <xref
|
||||
linkend="app-vacuumdb" endterm="app-vacuumdb-title"> might be helpful.
|
||||
linkend="app-vacuumdb"> might be helpful.
|
||||
</para>
|
||||
|
||||
<tip>
|
||||
@ -220,9 +220,9 @@
|
||||
massive update or delete activity. If you have such a table and
|
||||
you need to reclaim the excess disk space it occupies, you will need
|
||||
to use <command>VACUUM FULL</>, or alternatively
|
||||
<xref linkend="sql-cluster" endterm="sql-cluster-title">
|
||||
<xref linkend="sql-cluster">
|
||||
or one of the table-rewriting variants of
|
||||
<xref linkend="sql-altertable" endterm="sql-altertable-title">.
|
||||
<xref linkend="sql-altertable">.
|
||||
These commands rewrite an entire new copy of the table and build
|
||||
new indexes for it. All these options require exclusive lock. Note that
|
||||
they also temporarily use extra disk space approximately equal to the size
|
||||
@ -235,7 +235,7 @@
|
||||
<para>
|
||||
If you have a table whose entire contents are deleted on a periodic
|
||||
basis, consider doing it with
|
||||
<xref linkend="sql-truncate" endterm="sql-truncate-title"> rather
|
||||
<xref linkend="sql-truncate"> rather
|
||||
than using <command>DELETE</command> followed by
|
||||
<command>VACUUM</command>. <command>TRUNCATE</command> removes the
|
||||
entire content of the table immediately, without requiring a
|
||||
@ -247,7 +247,7 @@
|
||||
</sect2>
|
||||
|
||||
<sect2 id="vacuum-for-statistics">
|
||||
<title id="vacuum-for-statistics-title">Updating Planner Statistics</title>
|
||||
<title>Updating Planner Statistics</title>
|
||||
|
||||
<indexterm zone="vacuum-for-statistics">
|
||||
<primary>statistics</primary>
|
||||
@ -262,7 +262,7 @@
|
||||
The <productname>PostgreSQL</productname> query planner relies on
|
||||
statistical information about the contents of tables in order to
|
||||
generate good plans for queries. These statistics are gathered by
|
||||
the <xref linkend="sql-analyze" endterm="sql-analyze-title"> command,
|
||||
the <xref linkend="sql-analyze"> command,
|
||||
which can be invoked by itself or
|
||||
as an optional step in <command>VACUUM</>. It is important to have
|
||||
reasonably accurate statistics, otherwise poor choices of plans might
|
||||
@ -555,7 +555,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
|
||||
</sect2>
|
||||
|
||||
<sect2 id="autovacuum">
|
||||
<title id="autovacuum-title">The Autovacuum Daemon</title>
|
||||
<title>The Autovacuum Daemon</title>
|
||||
|
||||
<indexterm>
|
||||
<primary>autovacuum</primary>
|
||||
@ -666,10 +666,8 @@ analyze threshold = analyze base threshold + analyze scale factor * number of tu
|
||||
Another two parameters,
|
||||
<literal>autovacuum_vacuum_cost_delay</literal> and
|
||||
<literal>autovacuum_vacuum_cost_limit</literal>, are used to set
|
||||
table-specific values for the
|
||||
<xref linkend="runtime-config-resource-vacuum-cost"
|
||||
endterm="runtime-config-resource-vacuum-cost-title">
|
||||
feature.
|
||||
table-specific values for the cost-based vacuum delay feature
|
||||
(see <xref linkend="runtime-config-resource-vacuum-cost">).
|
||||
<literal>autovacuum_freeze_min_age</literal>,
|
||||
<literal>autovacuum_freeze_max_age</literal> and
|
||||
<literal>autovacuum_freeze_table_age</literal> are used to set
|
||||
@ -697,7 +695,7 @@ analyze threshold = analyze base threshold + analyze scale factor * number of tu
|
||||
|
||||
<para>
|
||||
In some situations it is worthwhile to rebuild indexes periodically
|
||||
with the <xref linkend="sql-reindex" endterm="sql-reindex-title">
|
||||
with the <xref linkend="sql-reindex">
|
||||
command.
|
||||
</para>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.61 2010/02/03 17:25:05 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/manage-ag.sgml,v 2.62 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="managing-databases">
|
||||
<title>Managing Databases</title>
|
||||
@ -86,7 +86,7 @@ SELECT datname FROM pg_database;
|
||||
|
||||
<para>
|
||||
Databases are created with the SQL command
|
||||
<xref linkend="sql-createdatabase" endterm="sql-createdatabase-title">:<indexterm><primary>CREATE
|
||||
<xref linkend="sql-createdatabase">:<indexterm><primary>CREATE
|
||||
DATABASE</></>
|
||||
<synopsis>
|
||||
CREATE DATABASE <replaceable>name</>;
|
||||
@ -314,7 +314,7 @@ ALTER DATABASE mydb SET geqo TO off;
|
||||
|
||||
<para>
|
||||
Databases are destroyed with the command
|
||||
<xref linkend="sql-dropdatabase" endterm="sql-dropdatabase-title">:<indexterm><primary>DROP DATABASE</></>
|
||||
<xref linkend="sql-dropdatabase">:<indexterm><primary>DROP DATABASE</></>
|
||||
<synopsis>
|
||||
DROP DATABASE <replaceable>name</>;
|
||||
</synopsis>
|
||||
@ -380,7 +380,7 @@ dropdb <replaceable class="parameter">dbname</replaceable>
|
||||
|
||||
<para>
|
||||
To define a tablespace, use the <xref
|
||||
linkend="sql-createtablespace" endterm="sql-createtablespace-title">
|
||||
linkend="sql-createtablespace">
|
||||
command, for example:<indexterm><primary>CREATE TABLESPACE</></>:
|
||||
<programlisting>
|
||||
CREATE TABLESPACE fastspace LOCATION '/mnt/sda1/postgresql/data';
|
||||
@ -472,7 +472,7 @@ CREATE TABLE foo(i int);
|
||||
|
||||
<para>
|
||||
To remove an empty tablespace, use the <xref
|
||||
linkend="sql-droptablespace" endterm="sql-droptablespace-title">
|
||||
linkend="sql-droptablespace">
|
||||
command.
|
||||
</para>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.76 2010/02/03 17:25:05 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.77 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="monitoring">
|
||||
<title>Monitoring Database Activity</title>
|
||||
@ -27,8 +27,7 @@
|
||||
<command>ps</>, <command>top</>, <command>iostat</>, and <command>vmstat</>.
|
||||
Also, once one has identified a
|
||||
poorly-performing query, further investigation might be needed using
|
||||
<productname>PostgreSQL</productname>'s <xref linkend="sql-explain"
|
||||
endterm="sql-explain-title"> command.
|
||||
<productname>PostgreSQL</productname>'s <xref linkend="sql-explain"> command.
|
||||
<xref linkend="using-explain"> discusses <command>EXPLAIN</>
|
||||
and other methods for understanding the behavior of an individual
|
||||
query.
|
||||
@ -159,7 +158,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
|
||||
Normally these parameters are set in <filename>postgresql.conf</> so
|
||||
that they apply to all server processes, but it is possible to turn
|
||||
them on or off in individual sessions using the <xref
|
||||
linkend="sql-set" endterm="sql-set-title"> command. (To prevent
|
||||
linkend="sql-set"> command. (To prevent
|
||||
ordinary users from hiding their activity from the administrator,
|
||||
only superusers are allowed to change these parameters with
|
||||
<command>SET</>.)
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.73 2010/02/24 14:10:24 alvherre Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/mvcc.sgml,v 2.74 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="mvcc">
|
||||
<title>Concurrency Control</title>
|
||||
@ -227,7 +227,7 @@
|
||||
|
||||
<para>
|
||||
To set the transaction isolation level of a transaction, use the
|
||||
command <xref linkend="sql-set-transaction" endterm="sql-set-transaction-title">.
|
||||
command <xref linkend="sql-set-transaction">.
|
||||
</para>
|
||||
|
||||
<sect2 id="xact-read-committed">
|
||||
@ -557,7 +557,7 @@ SELECT SUM(value) FROM mytab WHERE class = 2;
|
||||
which they are used automatically by
|
||||
<productname>PostgreSQL</productname>. You can also acquire any
|
||||
of these locks explicitly with the command <xref
|
||||
linkend="sql-lock" endterm="sql-lock-title">.
|
||||
linkend="sql-lock">.
|
||||
Remember that all of these lock modes are table-level locks,
|
||||
even if the name contains the word
|
||||
<quote>row</quote>; the names of the lock modes are historical.
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/passwordcheck.sgml,v 1.1 2009/11/18 21:57:56 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/passwordcheck.sgml,v 1.2 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<sect1 id="passwordcheck">
|
||||
<title>passwordcheck</title>
|
||||
@ -10,8 +10,8 @@
|
||||
<para>
|
||||
The <filename>passwordcheck</filename> module checks users' passwords
|
||||
whenever they are set with
|
||||
<xref linkend="SQL-CREATEROLE" endterm="SQL-CREATEROLE-title"> or
|
||||
<xref linkend="SQL-ALTERROLE" endterm="SQL-ALTERROLE-title">.
|
||||
<xref linkend="SQL-CREATEROLE"> or
|
||||
<xref linkend="SQL-ALTERROLE">.
|
||||
If a password is considered too weak, it will be rejected and
|
||||
the command will terminate with an error.
|
||||
</para>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.74 2010/02/26 02:31:52 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.75 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="performance-tips">
|
||||
<title>Performance Tips</title>
|
||||
@ -32,7 +32,7 @@
|
||||
is absolutely critical for good performance, so the system includes
|
||||
a complex <firstterm>planner</> that tries to choose good plans.
|
||||
You can use the
|
||||
<xref linkend="sql-explain" endterm="sql-explain-title"> command
|
||||
<xref linkend="sql-explain"> command
|
||||
to see what query plan the planner creates for any query.
|
||||
Plan-reading is an art that deserves an extensive tutorial, which
|
||||
this is not; but here is some basic information.
|
||||
@ -801,7 +801,7 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
|
||||
<title>Use <command>COPY</command></title>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="sql-copy" endterm="sql-copy-title"> to load
|
||||
Use <xref linkend="sql-copy"> to load
|
||||
all the rows in one command, instead of using a series of
|
||||
<command>INSERT</command> commands. The <command>COPY</command>
|
||||
command is optimized for loading large numbers of rows; it is less
|
||||
@ -813,7 +813,7 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
|
||||
|
||||
<para>
|
||||
If you cannot use <command>COPY</command>, it might help to use <xref
|
||||
linkend="sql-prepare" endterm="sql-prepare-title"> to create a
|
||||
linkend="sql-prepare"> to create a
|
||||
prepared <command>INSERT</command> statement, and then use
|
||||
<command>EXECUTE</command> as many times as required. This avoids
|
||||
some of the overhead of repeatedly parsing and planning
|
||||
@ -967,8 +967,7 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
|
||||
|
||||
<para>
|
||||
Whenever you have significantly altered the distribution of data
|
||||
within a table, running <xref linkend="sql-analyze"
|
||||
endterm="sql-analyze-title"> is strongly recommended. This
|
||||
within a table, running <xref linkend="sql-analyze"> is strongly recommended. This
|
||||
includes bulk loading large amounts of data into the table. Running
|
||||
<command>ANALYZE</command> (or <command>VACUUM ANALYZE</command>)
|
||||
ensures that the planner has up-to-date statistics about the
|
||||
@ -977,8 +976,8 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
|
||||
performance on any tables with inaccurate or nonexistent
|
||||
statistics. Note that if the autovacuum daemon is enabled, it might
|
||||
run <command>ANALYZE</command> automatically; see
|
||||
<xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
|
||||
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
|
||||
<xref linkend="vacuum-for-statistics">
|
||||
and <xref linkend="autovacuum"> for more information.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
@ -1062,8 +1061,8 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
|
||||
<varname>maintenance_work_mem</varname>; rather, you'd do that while
|
||||
manually recreating indexes and foreign keys afterwards.
|
||||
And don't forget to <command>ANALYZE</> when you're done; see
|
||||
<xref linkend="vacuum-for-statistics" endterm="vacuum-for-statistics-title">
|
||||
and <xref linkend="autovacuum" endterm="autovacuum-title"> for more information.
|
||||
<xref linkend="vacuum-for-statistics">
|
||||
and <xref linkend="autovacuum"> for more information.
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/plhandler.sgml,v 1.9 2009/11/23 21:41:20 petere Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/plhandler.sgml,v 1.10 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="plhandler">
|
||||
<title>Writing A Procedural Language Handler</title>
|
||||
@ -162,10 +162,10 @@ CREATE LANGUAGE plsample
|
||||
are a <firstterm>validator</firstterm> and an
|
||||
<firstterm>inline handler</firstterm>. A validator can be provided
|
||||
to allow language-specific checking to be done during
|
||||
<xref linkend="sql-createfunction" endterm="sql-createfunction-title">.
|
||||
<xref linkend="sql-createfunction">.
|
||||
An inline handler can be provided to allow the language to support
|
||||
anonymous code blocks executed via the <xref linkend="sql-do"
|
||||
endterm="sql-do-title"> command.
|
||||
> command.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -218,7 +218,7 @@ CREATE LANGUAGE plsample
|
||||
The procedural languages included in the standard distribution
|
||||
are good references when trying to write your own language handler.
|
||||
Look into the <filename>src/pl</> subdirectory of the source tree.
|
||||
The <xref linkend="sql-createlanguage" endterm="sql-createlanguage-title">
|
||||
The <xref linkend="sql-createlanguage">
|
||||
reference page also has some useful details.
|
||||
</para>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.82 2010/02/25 10:02:30 mha Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.83 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="plperl">
|
||||
<title>PL/Perl - Perl Procedural Language</title>
|
||||
@ -51,7 +51,7 @@
|
||||
|
||||
<para>
|
||||
To create a function in the PL/Perl language, use the standard
|
||||
<xref linkend="sql-createfunction" endterm="sql-createfunction-title">
|
||||
<xref linkend="sql-createfunction">
|
||||
syntax:
|
||||
|
||||
<programlisting>
|
||||
@ -69,7 +69,7 @@ $$ LANGUAGE plperl;
|
||||
|
||||
<para>
|
||||
PL/Perl also supports anonymous code blocks called with the
|
||||
<xref linkend="sql-do" endterm="sql-do-title"> statement:
|
||||
<xref linkend="sql-do"> statement:
|
||||
|
||||
<programlisting>
|
||||
DO $$
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.151 2010/02/17 04:19:37 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.152 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="plpgsql">
|
||||
<title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title>
|
||||
@ -1124,7 +1124,7 @@ EXECUTE 'SELECT count(*) FROM '
|
||||
<para>
|
||||
The <application>PL/pgSQL</application>
|
||||
<command>EXECUTE</command> statement is not related to the
|
||||
<xref linkend="sql-execute" endterm="sql-execute-title"> SQL
|
||||
<xref linkend="sql-execute"> SQL
|
||||
statement supported by the
|
||||
<productname>PostgreSQL</productname> server. The server's
|
||||
<command>EXECUTE</command> statement cannot be used directly within
|
||||
@ -2610,8 +2610,8 @@ FETCH <optional> <replaceable>direction</replaceable> { FROM | IN } </optional>
|
||||
|
||||
<para>
|
||||
The <replaceable>direction</replaceable> clause can be any of the
|
||||
variants allowed in the SQL <xref linkend="sql-fetch"
|
||||
endterm="sql-fetch-title"> command except the ones that can fetch
|
||||
variants allowed in the SQL <xref linkend="sql-fetch">
|
||||
command except the ones that can fetch
|
||||
more than one row; namely, it can be
|
||||
<literal>NEXT</>,
|
||||
<literal>PRIOR</>,
|
||||
@ -2662,8 +2662,8 @@ MOVE <optional> <replaceable>direction</replaceable> { FROM | IN } </optional> <
|
||||
|
||||
<para>
|
||||
The <replaceable>direction</replaceable> clause can be any of the
|
||||
variants allowed in the SQL <xref linkend="sql-fetch"
|
||||
endterm="sql-fetch-title"> command, namely
|
||||
variants allowed in the SQL <xref linkend="sql-fetch">
|
||||
command, namely
|
||||
<literal>NEXT</>,
|
||||
<literal>PRIOR</>,
|
||||
<literal>FIRST</>,
|
||||
@ -2705,7 +2705,7 @@ DELETE FROM <replaceable>table</replaceable> WHERE CURRENT OF <replaceable>curso
|
||||
restrictions on what the cursor's query can be (in particular,
|
||||
no grouping) and it's best to use <literal>FOR UPDATE</> in the
|
||||
cursor. For more information see the
|
||||
<xref linkend="sql-declare" endterm="sql-declare-title">
|
||||
<xref linkend="sql-declare">
|
||||
reference page.
|
||||
</para>
|
||||
|
||||
@ -4625,7 +4625,7 @@ $$ LANGUAGE plpgsql;
|
||||
the function always returns the same result when given the same
|
||||
arguments) and <quote>strictness</quote> (whether the function
|
||||
returns null if any argument is null). Consult the <xref
|
||||
linkend="sql-createfunction" endterm="sql-createfunction-title">
|
||||
linkend="sql-createfunction">
|
||||
reference page for details.
|
||||
</para>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/pltcl.sgml,v 2.48 2008/03/28 00:21:55 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/pltcl.sgml,v 2.49 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="pltcl">
|
||||
<title>PL/Tcl - Tcl Procedural Language</title>
|
||||
@ -79,8 +79,7 @@
|
||||
|
||||
<para>
|
||||
To create a function in the <application>PL/Tcl</> language, use
|
||||
the standard <xref linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title"> syntax:
|
||||
the standard <xref linkend="sql-createfunction"> syntax:
|
||||
|
||||
<programlisting>
|
||||
CREATE FUNCTION <replaceable>funcname</replaceable> (<replaceable>argument-types</replaceable>) RETURNS <replaceable>return-type</replaceable> AS $$
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.86 2010/03/17 00:28:15 sriggs Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/protocol.sgml,v 1.87 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="protocol">
|
||||
<title>Frontend/Backend Protocol</title>
|
||||
@ -2419,7 +2419,7 @@ CopyInResponse (B)
|
||||
characters, etc).
|
||||
1 indicates the overall copy format is binary (similar
|
||||
to DataRow format).
|
||||
See <xref linkend="sql-copy" endterm="sql-copy-title">
|
||||
See <xref linkend="sql-copy">
|
||||
for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -2493,8 +2493,7 @@ CopyOutResponse (B)
|
||||
is textual (rows separated by newlines, columns
|
||||
separated by separator characters, etc). 1 indicates
|
||||
the overall copy format is binary (similar to DataRow
|
||||
format). See <xref linkend="sql-copy"
|
||||
endterm="sql-copy-title"> for more information.
|
||||
format). See <xref linkend="sql-copy"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/queries.sgml,v 1.56 2009/10/21 20:22:38 tgl Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/queries.sgml,v 1.57 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="queries">
|
||||
<title>Queries</title>
|
||||
@ -24,7 +24,7 @@
|
||||
<para>
|
||||
The process of retrieving or the command to retrieve data from a
|
||||
database is called a <firstterm>query</firstterm>. In SQL the
|
||||
<xref linkend="sql-select" endterm="sql-select-title"> command is
|
||||
<xref linkend="sql-select"> command is
|
||||
used to specify queries. The general syntax of the
|
||||
<command>SELECT</command> command is
|
||||
<synopsis>
|
||||
@ -1508,8 +1508,7 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For more information see <xref linkend="sql-values"
|
||||
endterm="sql-values-title">.
|
||||
For more information see <xref linkend="sql-values">.
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.54 2010/02/19 01:15:54 momjian Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/query.sgml,v 1.55 2010/04/03 07:22:55 petere Exp $ -->
|
||||
|
||||
<chapter id="tutorial-sql">
|
||||
<title>The <acronym>SQL</acronym> Language</title>
|
||||
@ -267,8 +267,7 @@ COPY weather FROM '/home/user/weather.txt';
|
||||
where the file name for the source file must be available to the
|
||||
backend server machine, not the client, since the backend server
|
||||
reads the file directly. You can read more about the
|
||||
<command>COPY</command> command in <xref linkend="sql-copy"
|
||||
endterm="sql-copy-title">.
|
||||
<command>COPY</command> command in <xref linkend="sql-copy">.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/abort.sgml,v 1.18 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/abort.sgml,v 1.19 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ABORT">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-abort-title">ABORT</refentrytitle>
|
||||
<refentrytitle>ABORT</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -33,7 +33,7 @@ ABORT [ WORK | TRANSACTION ]
|
||||
all the updates made by the transaction to be discarded.
|
||||
This command is identical
|
||||
in behavior to the standard <acronym>SQL</acronym> command
|
||||
<xref linkend="SQL-ROLLBACK" endterm="SQL-ROLLBACK-TITLE">,
|
||||
<xref linkend="SQL-ROLLBACK">,
|
||||
and is present only for historical reasons.
|
||||
</para>
|
||||
</refsect1>
|
||||
@ -58,7 +58,7 @@ ABORT [ WORK | TRANSACTION ]
|
||||
<title>Notes</title>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="SQL-COMMIT" endterm="SQL-COMMIT-TITLE"> to
|
||||
Use <xref linkend="SQL-COMMIT"> to
|
||||
successfully terminate a transaction.
|
||||
</para>
|
||||
|
||||
@ -93,9 +93,9 @@ ABORT;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-begin" endterm="sql-begin-title"></member>
|
||||
<member><xref linkend="sql-commit" endterm="sql-commit-title"></member>
|
||||
<member><xref linkend="sql-rollback" endterm="sql-rollback-title"></member>
|
||||
<member><xref linkend="sql-begin"></member>
|
||||
<member><xref linkend="sql-commit"></member>
|
||||
<member><xref linkend="sql-rollback"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_aggregate.sgml,v 1.10 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_aggregate.sgml,v 1.11 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERAGGREGATE">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERAGGREGATE-TITLE">ALTER AGGREGATE</refentrytitle>
|
||||
<refentrytitle>ALTER AGGREGATE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -142,8 +142,8 @@ ALTER AGGREGATE myavg(integer) SET SCHEMA myschema;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createaggregate" endterm="sql-createaggregate-title"></member>
|
||||
<member><xref linkend="sql-dropaggregate" endterm="sql-dropaggregate-title"></member>
|
||||
<member><xref linkend="sql-createaggregate"></member>
|
||||
<member><xref linkend="sql-dropaggregate"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_conversion.sgml,v 1.10 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_conversion.sgml,v 1.11 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERCONVERSION">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERCONVERSION-TITLE">ALTER CONVERSION</refentrytitle>
|
||||
<refentrytitle>ALTER CONVERSION</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -111,8 +111,8 @@ ALTER CONVERSION iso_8859_1_to_utf8 OWNER TO joe;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createconversion" endterm="sql-createconversion-title"></member>
|
||||
<member><xref linkend="sql-dropconversion" endterm="sql-dropconversion-title"></member>
|
||||
<member><xref linkend="sql-createconversion"></member>
|
||||
<member><xref linkend="sql-dropconversion"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_database.sgml,v 1.24 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_database.sgml,v 1.25 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERDATABASE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterdatabase-title">ALTER DATABASE</refentrytitle>
|
||||
<refentrytitle>ALTER DATABASE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -160,7 +160,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
|
||||
</para>
|
||||
|
||||
<para>
|
||||
See <xref linkend="sql-set" endterm="sql-set-title"> and <xref linkend="runtime-config">
|
||||
See <xref linkend="sql-set"> and <xref linkend="runtime-config">
|
||||
for more information about allowed parameter names
|
||||
and values.
|
||||
</para>
|
||||
@ -175,7 +175,7 @@ ALTER DATABASE <replaceable class="PARAMETER">name</replaceable> RESET ALL
|
||||
<para>
|
||||
It is also possible to tie a session default to a specific role
|
||||
rather than to a database; see
|
||||
<xref linkend="sql-alterrole" endterm="sql-alterrole-title">.
|
||||
<xref linkend="sql-alterrole">.
|
||||
Role-specific settings override database-specific
|
||||
ones if there is a conflict.
|
||||
</para>
|
||||
@ -207,10 +207,10 @@ ALTER DATABASE test SET enable_indexscan TO off;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createdatabase" endterm="sql-createdatabase-title"></member>
|
||||
<member><xref linkend="sql-dropdatabase" endterm="sql-dropdatabase-title"></member>
|
||||
<member><xref linkend="sql-set" endterm="sql-set-title"></member>
|
||||
<member><xref linkend="sql-createtablespace" endterm="sql-createtablespace-title"></member>
|
||||
<member><xref linkend="sql-createdatabase"></member>
|
||||
<member><xref linkend="sql-dropdatabase"></member>
|
||||
<member><xref linkend="sql-set"></member>
|
||||
<member><xref linkend="sql-createtablespace"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_default_privileges.sgml,v 1.2 2009/10/12 23:41:43 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_default_privileges.sgml,v 1.3 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERDEFAULTPRIVILEGES">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERDEFAULTPRIVILEGES-TITLE">ALTER DEFAULT PRIVILEGES</refentrytitle>
|
||||
<refentrytitle>ALTER DEFAULT PRIVILEGES</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -85,7 +85,7 @@ REVOKE [ GRANT OPTION FOR ]
|
||||
</para>
|
||||
|
||||
<para>
|
||||
As explained under <xref linkend="sql-grant" endterm="sql-grant-title">,
|
||||
As explained under <xref linkend="sql-grant">,
|
||||
the default privileges for any object type normally grant all grantable
|
||||
permissions to the object owner, and may grant some privileges to
|
||||
<literal>PUBLIC</> as well. However, this behavior can be changed by
|
||||
@ -127,8 +127,8 @@ REVOKE [ GRANT OPTION FOR ]
|
||||
This parameter, and all the other parameters in
|
||||
<replaceable class="parameter">abbreviated_grant_or_revoke</>,
|
||||
act as described under
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title"> or
|
||||
<xref linkend="sql-revoke" endterm="sql-revoke-title">,
|
||||
<xref linkend="sql-grant"> or
|
||||
<xref linkend="sql-revoke">,
|
||||
except that one is setting permissions for a whole class of objects
|
||||
rather than specific named objects.
|
||||
</para>
|
||||
@ -146,7 +146,7 @@ REVOKE [ GRANT OPTION FOR ]
|
||||
to obtain information about existing assignments of default privileges.
|
||||
The meaning of the privilege values is the same as explained for
|
||||
<command>\dp</command> under
|
||||
<xref linkend="sql-grant" endterm="sql-grant-title">.
|
||||
<xref linkend="sql-grant">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -203,8 +203,8 @@ ALTER DEFAULT PRIVILEGES FOR ROLE admin REVOKE EXECUTE ON FUNCTIONS FROM PUBLIC;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-grant" endterm="sql-grant-title"></member>
|
||||
<member><xref linkend="sql-revoke" endterm="sql-revoke-title"></member>
|
||||
<member><xref linkend="sql-grant"></member>
|
||||
<member><xref linkend="sql-revoke"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.24 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_domain.sgml,v 1.25 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERDOMAIN">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterdomain-title">ALTER DOMAIN</refentrytitle>
|
||||
<refentrytitle>ALTER DOMAIN</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -74,7 +74,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
This form adds a new constraint to a domain using the same syntax as
|
||||
<xref linkend="SQL-CREATEDOMAIN" endterm="SQL-CREATEDOMAIN-TITLE">.
|
||||
<xref linkend="SQL-CREATEDOMAIN">.
|
||||
This will only succeed if all columns using the domain satisfy the
|
||||
new constraint.
|
||||
</para>
|
||||
@ -260,8 +260,8 @@ ALTER DOMAIN zipcode SET SCHEMA customers;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createdomain" endterm="sql-createdomain-title"></member>
|
||||
<member><xref linkend="sql-dropdomain" endterm="sql-dropdomain-title"></member>
|
||||
<member><xref linkend="sql-createdomain"></member>
|
||||
<member><xref linkend="sql-dropdomain"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_foreign_data_wrapper.sgml,v 1.3 2009/06/19 15:28:25 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_foreign_data_wrapper.sgml,v 1.4 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERFOREIGNDATAWRAPPER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterforeigndatawrapper-title">ALTER FOREIGN DATA WRAPPER</refentrytitle>
|
||||
<refentrytitle>ALTER FOREIGN DATA WRAPPER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -136,8 +136,8 @@ ALTER FOREIGN DATA WRAPPER dbi VALIDATOR bob.myvalidator;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createforeigndatawrapper" endterm="sql-createforeigndatawrapper-title"></member>
|
||||
<member><xref linkend="sql-dropforeigndatawrapper" endterm="sql-dropforeigndatawrapper-title"></member>
|
||||
<member><xref linkend="sql-createforeigndatawrapper"></member>
|
||||
<member><xref linkend="sql-dropforeigndatawrapper"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_function.sgml,v 1.18 2009/09/18 05:00:41 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_function.sgml,v 1.19 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERFUNCTION">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERFUNCTION-TITLE">ALTER FUNCTION</refentrytitle>
|
||||
<refentrytitle>ALTER FUNCTION</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -159,8 +159,8 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
|
||||
null. <literal>RETURNS NULL ON NULL INPUT</literal> or
|
||||
<literal>STRICT</literal> changes the function so that it is not
|
||||
invoked if any of its arguments are null; instead, a null result
|
||||
is assumed automatically. See <xref linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title"> for more information.
|
||||
is assumed automatically. See <xref linkend="sql-createfunction">
|
||||
for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -173,8 +173,7 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
|
||||
<listitem>
|
||||
<para>
|
||||
Change the volatility of the function to the specified setting.
|
||||
See <xref linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title"> for details.
|
||||
See <xref linkend="sql-createfunction"> for details.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -187,8 +186,7 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
|
||||
<para>
|
||||
Change whether the function is a security definer or not. The
|
||||
key word <literal>EXTERNAL</literal> is ignored for SQL
|
||||
conformance. See <xref linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title"> for more information about
|
||||
conformance. See <xref linkend="sql-createfunction"> for more information about
|
||||
this capability.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -200,8 +198,7 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
|
||||
<listitem>
|
||||
<para>
|
||||
Change the estimated execution cost of the function.
|
||||
See <xref linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title"> for more information.
|
||||
See <xref linkend="sql-createfunction"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -212,8 +209,7 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
|
||||
<listitem>
|
||||
<para>
|
||||
Change the estimated number of rows returned by a set-returning
|
||||
function. See <xref linkend="sql-createfunction"
|
||||
endterm="sql-createfunction-title"> for more information.
|
||||
function. See <xref linkend="sql-createfunction"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -235,7 +231,7 @@ ALTER FUNCTION <replaceable>name</replaceable> ( [ [ <replaceable class="paramet
|
||||
</para>
|
||||
|
||||
<para>
|
||||
See <xref linkend="sql-set" endterm="sql-set-title"> and
|
||||
See <xref linkend="sql-set"> and
|
||||
<xref linkend="runtime-config">
|
||||
for more information about allowed parameter names and values.
|
||||
</para>
|
||||
@ -317,8 +313,8 @@ ALTER FUNCTION check_password(text) RESET search_path;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createfunction" endterm="sql-createfunction-title"></member>
|
||||
<member><xref linkend="sql-dropfunction" endterm="sql-dropfunction-title"></member>
|
||||
<member><xref linkend="sql-createfunction"></member>
|
||||
<member><xref linkend="sql-dropfunction"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.19 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_group.sgml,v 1.20 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERGROUP">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERGROUP-title">ALTER GROUP</refentrytitle>
|
||||
<refentrytitle>ALTER GROUP</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -44,14 +44,14 @@ ALTER GROUP <replaceable class="PARAMETER">group_name</replaceable> RENAME TO <r
|
||||
<quote>group</> for this purpose.) These variants are effectively
|
||||
equivalent to granting or revoking membership in the role named as the
|
||||
<quote>group</>; so the preferred way to do this is to use
|
||||
<xref linkend="SQL-GRANT" endterm="SQL-GRANT-title"> or
|
||||
<xref linkend="SQL-REVOKE" endterm="SQL-REVOKE-title">.
|
||||
<xref linkend="SQL-GRANT"> or
|
||||
<xref linkend="SQL-REVOKE">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The third variant changes the name of the group. This is exactly
|
||||
equivalent to renaming the role with
|
||||
<xref linkend="sql-alterrole" endterm="sql-alterrole-title">.
|
||||
<xref linkend="sql-alterrole">.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@ -121,9 +121,9 @@ ALTER GROUP workers DROP USER beth;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-grant" endterm="sql-grant-title"></member>
|
||||
<member><xref linkend="sql-revoke" endterm="sql-revoke-title"></member>
|
||||
<member><xref linkend="sql-alterrole" endterm="sql-alterrole-title"></member>
|
||||
<member><xref linkend="sql-grant"></member>
|
||||
<member><xref linkend="sql-revoke"></member>
|
||||
<member><xref linkend="sql-alterrole"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_index.sgml,v 1.14 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_index.sgml,v 1.15 2010/04/03 07:22:56 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERINDEX">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterindex-title">ALTER INDEX</refentrytitle>
|
||||
<refentrytitle>ALTER INDEX</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -54,7 +54,7 @@ ALTER INDEX <replaceable class="PARAMETER">name</replaceable> RESET ( <replaceab
|
||||
This form changes the index's tablespace to the specified tablespace and
|
||||
moves the data file(s) associated with the index to the new tablespace.
|
||||
See also
|
||||
<xref linkend="SQL-CREATETABLESPACE" endterm="sql-createtablespace-title">.
|
||||
<xref linkend="SQL-CREATETABLESPACE">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -65,11 +65,11 @@ ALTER INDEX <replaceable class="PARAMETER">name</replaceable> RESET ( <replaceab
|
||||
<para>
|
||||
This form changes one or more index-method-specific storage parameters
|
||||
for the index. See
|
||||
<xref linkend="SQL-CREATEINDEX" endterm="sql-createindex-title">
|
||||
<xref linkend="SQL-CREATEINDEX">
|
||||
for details on the available parameters. Note that the index contents
|
||||
will not be modified immediately by this command; depending on the
|
||||
parameter you might need to rebuild the index with
|
||||
<xref linkend="SQL-REINDEX" endterm="sql-reindex-title">
|
||||
<xref linkend="SQL-REINDEX">
|
||||
to get the desired effects.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -151,7 +151,7 @@ ALTER INDEX <replaceable class="PARAMETER">name</replaceable> RESET ( <replaceab
|
||||
|
||||
<para>
|
||||
These operations are also possible using
|
||||
<xref linkend="SQL-ALTERTABLE" endterm="SQL-ALTERTABLE-TITLE">.
|
||||
<xref linkend="SQL-ALTERTABLE">.
|
||||
<command>ALTER INDEX</> is in fact just an alias for the forms
|
||||
of <command>ALTER TABLE</> that apply to indexes.
|
||||
</para>
|
||||
@ -209,8 +209,8 @@ REINDEX INDEX distributors;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createindex" endterm="sql-createindex-title"></member>
|
||||
<member><xref linkend="sql-reindex" endterm="sql-reindex-title"></member>
|
||||
<member><xref linkend="sql-createindex"></member>
|
||||
<member><xref linkend="sql-reindex"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_language.sgml,v 1.9 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_language.sgml,v 1.10 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERLANGUAGE">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERLANGUAGE-title">ALTER LANGUAGE</refentrytitle>
|
||||
<refentrytitle>ALTER LANGUAGE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -83,8 +83,8 @@ ALTER [ PROCEDURAL ] LANGUAGE <replaceable>name</replaceable> OWNER TO <replacea
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createlanguage" endterm="sql-createlanguage-title"></member>
|
||||
<member><xref linkend="sql-droplanguage" endterm="sql-droplanguage-title"></member>
|
||||
<member><xref linkend="sql-createlanguage"></member>
|
||||
<member><xref linkend="sql-droplanguage"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_large_object.sgml,v 1.2 2009/12/19 03:29:28 itagaki Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_large_object.sgml,v 1.3 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERLARGEOBJECT">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERLARGEOBJECT-title">ALTER LARGE OBJECT</refentrytitle>
|
||||
<refentrytitle>ALTER LARGE OBJECT</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -73,7 +73,7 @@ ALTER LARGE OBJECT <replaceable class="PARAMETER">large_object_oid</replaceable>
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="largeObjects" endterm="largeObjects-title"></member>
|
||||
<member><xref linkend="largeobjects"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.10 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opclass.sgml,v 1.11 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTEROPCLASS">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTEROPCLASS-TITLE">ALTER OPERATOR CLASS</refentrytitle>
|
||||
<refentrytitle>ALTER OPERATOR CLASS</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -101,9 +101,9 @@ ALTER OPERATOR CLASS <replaceable>name</replaceable> USING <replaceable class="p
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createopclass" endterm="sql-createopclass-title"></member>
|
||||
<member><xref linkend="sql-dropopclass" endterm="sql-dropopclass-title"></member>
|
||||
<member><xref linkend="sql-alteropfamily" endterm="sql-alteropfamily-title"></member>
|
||||
<member><xref linkend="sql-createopclass"></member>
|
||||
<member><xref linkend="sql-dropopclass"></member>
|
||||
<member><xref linkend="sql-alteropfamily"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_operator.sgml,v 1.5 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_operator.sgml,v 1.6 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTEROPERATOR">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTEROPERATOR-TITLE">ALTER OPERATOR</refentrytitle>
|
||||
<refentrytitle>ALTER OPERATOR</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -112,8 +112,8 @@ ALTER OPERATOR @@ (text, text) OWNER TO joe;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createoperator" endterm="sql-createoperator-title"></member>
|
||||
<member><xref linkend="sql-dropoperator" endterm="sql-dropoperator-title"></member>
|
||||
<member><xref linkend="sql-createoperator"></member>
|
||||
<member><xref linkend="sql-dropoperator"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opfamily.sgml,v 1.6 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_opfamily.sgml,v 1.7 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTEROPFAMILY">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTEROPFAMILY-TITLE">ALTER OPERATOR FAMILY</refentrytitle>
|
||||
<refentrytitle>ALTER OPERATOR FAMILY</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -52,8 +52,7 @@ ALTER OPERATOR FAMILY <replaceable>name</replaceable> USING <replaceable class="
|
||||
are compatible with the family's semantics, but are not required for
|
||||
correct functioning of any specific index. (Operators and functions
|
||||
that are so required should be declared as part of an operator class,
|
||||
instead; see <xref linkend="sql-createopclass"
|
||||
endterm="sql-createopclass-title">.)
|
||||
instead; see <xref linkend="sql-createopclass">.)
|
||||
<productname>PostgreSQL</productname> will allow loose members of a
|
||||
family to be dropped from the family at any time, but members of an
|
||||
operator class cannot be dropped without dropping the whole class and
|
||||
@ -313,11 +312,11 @@ ALTER OPERATOR FAMILY integer_ops USING btree DROP
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createopfamily" endterm="sql-createopfamily-title"></member>
|
||||
<member><xref linkend="sql-dropopfamily" endterm="sql-dropopfamily-title"></member>
|
||||
<member><xref linkend="sql-createopclass" endterm="sql-createopclass-title"></member>
|
||||
<member><xref linkend="sql-alteropclass" endterm="sql-alteropclass-title"></member>
|
||||
<member><xref linkend="sql-dropopclass" endterm="sql-dropopclass-title"></member>
|
||||
<member><xref linkend="sql-createopfamily"></member>
|
||||
<member><xref linkend="sql-dropopfamily"></member>
|
||||
<member><xref linkend="sql-createopclass"></member>
|
||||
<member><xref linkend="sql-alteropclass"></member>
|
||||
<member><xref linkend="sql-dropopclass"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_role.sgml,v 1.15 2009/10/07 22:14:16 alvherre Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_role.sgml,v 1.16 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERROLE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterrole-title">ALTER ROLE</refentrytitle>
|
||||
<refentrytitle>ALTER ROLE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -55,11 +55,11 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
<para>
|
||||
The first variant of this command listed in the synopsis can change
|
||||
many of the role attributes that can be specified in
|
||||
<xref linkend="sql-createrole" endterm="sql-createrole-title">.
|
||||
<xref linkend="sql-createrole">.
|
||||
(All the possible attributes are covered,
|
||||
except that there are no options for adding or removing memberships; use
|
||||
<xref linkend="SQL-GRANT" endterm="SQL-GRANT-title"> and
|
||||
<xref linkend="SQL-REVOKE" endterm="SQL-REVOKE-title"> for that.)
|
||||
<xref linkend="SQL-GRANT"> and
|
||||
<xref linkend="SQL-REVOKE"> for that.)
|
||||
Attributes not mentioned in the command retain their previous settings.
|
||||
Database superusers can change any of these settings for any role.
|
||||
Roles having <literal>CREATEROLE</> privilege can change any of these
|
||||
@ -88,7 +88,7 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
<filename>postgresql.conf</> or has been received from the postgres
|
||||
command line. This only happens at login time, so configuration
|
||||
settings associated with a role to which you've <xref
|
||||
linkend="sql-set-role" endterm="sql-set-role-title"> will be ignored. Settings set to
|
||||
linkend="sql-set-role"> will be ignored. Settings set to
|
||||
a role directly are overridden by any database specific settings attached to a role.
|
||||
Superusers can change anyone's session defaults. Roles having
|
||||
<literal>CREATEROLE</> privilege can change defaults for non-superuser
|
||||
@ -131,8 +131,7 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
<listitem>
|
||||
<para>
|
||||
These clauses alter attributes originally set by
|
||||
<xref linkend="SQL-CREATEROLE"
|
||||
endterm="SQL-CREATEROLE-title">. For more information, see the
|
||||
<xref linkend="SQL-CREATEROLE">. For more information, see the
|
||||
<command>CREATE ROLE</command> reference page.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -176,12 +175,12 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
|
||||
<para>
|
||||
Role-specific variable setting take effect only at login;
|
||||
<xref linkend="sql-set-role" endterm="sql-set-role-title">
|
||||
<xref linkend="sql-set-role">
|
||||
does not process role-specific variable settings.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
See <xref linkend="sql-set" endterm="sql-set-title"> and <xref
|
||||
See <xref linkend="sql-set"> and <xref
|
||||
linkend="runtime-config"> for more information about allowed
|
||||
parameter names and values.
|
||||
</para>
|
||||
@ -194,15 +193,14 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
<title>Notes</title>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="SQL-CREATEROLE" endterm="SQL-CREATEROLE-title">
|
||||
to add new roles, and <xref linkend="SQL-DROPROLE"
|
||||
endterm="SQL-DROPROLE-title"> to remove a role.
|
||||
Use <xref linkend="SQL-CREATEROLE">
|
||||
to add new roles, and <xref linkend="SQL-DROPROLE"> to remove a role.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>ALTER ROLE</command> cannot change a role's memberships.
|
||||
Use <xref linkend="SQL-GRANT" endterm="SQL-GRANT-title"> and
|
||||
<xref linkend="SQL-REVOKE" endterm="SQL-REVOKE-title">
|
||||
Use <xref linkend="SQL-GRANT"> and
|
||||
<xref linkend="SQL-REVOKE">
|
||||
to do that.
|
||||
</para>
|
||||
|
||||
@ -210,8 +208,8 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
Caution must be exercised when specifying an unencrypted password
|
||||
with this command. The password will be transmitted to the server
|
||||
in cleartext, and it might also be logged in the client's command
|
||||
history or the server log. <xref linkend="app-psql"
|
||||
endterm="app-psql-title"> contains a command
|
||||
history or the server log. <xref linkend="app-psql">
|
||||
contains a command
|
||||
<command>\password</command> that can be used to safely change a
|
||||
role's password.
|
||||
</para>
|
||||
@ -219,7 +217,7 @@ ALTER ROLE <replaceable class="PARAMETER">name</replaceable> [ IN DATABASE <repl
|
||||
<para>
|
||||
It is also possible to tie a
|
||||
session default to a specific database rather than to a role; see
|
||||
<xref linkend="sql-alterdatabase" endterm="sql-alterdatabase-title">.
|
||||
<xref linkend="sql-alterdatabase">.
|
||||
If there is a conflict, database-role-specific settings override role-specific
|
||||
ones, which in turn override database-specific ones.
|
||||
</para>
|
||||
@ -300,9 +298,9 @@ ALTER ROLE fred IN DATABASE devel SET client_min_messages = DEBUG;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createrole" endterm="sql-createrole-title"></member>
|
||||
<member><xref linkend="sql-droprole" endterm="sql-droprole-title"></member>
|
||||
<member><xref linkend="sql-set" endterm="sql-set-title"></member>
|
||||
<member><xref linkend="sql-createrole"></member>
|
||||
<member><xref linkend="sql-droprole"></member>
|
||||
<member><xref linkend="sql-set"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_schema.sgml,v 1.11 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_schema.sgml,v 1.12 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERSCHEMA">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERSCHEMA-title">ALTER SCHEMA</refentrytitle>
|
||||
<refentrytitle>ALTER SCHEMA</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -92,8 +92,8 @@ ALTER SCHEMA <replaceable>name</replaceable> OWNER TO <replaceable>new_owner</re
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createschema" endterm="sql-createschema-title"></member>
|
||||
<member><xref linkend="sql-dropschema" endterm="sql-dropschema-title"></member>
|
||||
<member><xref linkend="sql-createschema"></member>
|
||||
<member><xref linkend="sql-dropschema"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_sequence.sgml,v 1.24 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_sequence.sgml,v 1.25 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERSEQUENCE">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERSEQUENCE-TITLE">ALTER SEQUENCE</refentrytitle>
|
||||
<refentrytitle>ALTER SEQUENCE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -302,8 +302,8 @@ ALTER SEQUENCE serial RESTART WITH 105;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createsequence" endterm="sql-createsequence-title"></member>
|
||||
<member><xref linkend="sql-dropsequence" endterm="sql-dropsequence-title"></member>
|
||||
<member><xref linkend="sql-createsequence"></member>
|
||||
<member><xref linkend="sql-dropsequence"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_server.sgml,v 1.3 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_server.sgml,v 1.4 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERSERVER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterserver-title">ALTER SERVER</refentrytitle>
|
||||
<refentrytitle>ALTER SERVER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -116,8 +116,8 @@ ALTER SERVER foo VERSION '8.4' OPTIONS (SET host 'baz');
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createserver" endterm="sql-createserver-title"></member>
|
||||
<member><xref linkend="sql-dropserver" endterm="sql-dropserver-title"></member>
|
||||
<member><xref linkend="sql-createserver"></member>
|
||||
<member><xref linkend="sql-dropserver"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.111 2010/01/22 17:30:24 rhaas Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.112 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTABLE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-altertable-title">ALTER TABLE</refentrytitle>
|
||||
<refentrytitle>ALTER TABLE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -78,7 +78,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
This form adds a new column to the table, using the same syntax as
|
||||
<xref linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">.
|
||||
<xref linkend="SQL-CREATETABLE">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -147,7 +147,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<para>
|
||||
This form
|
||||
sets the per-column statistics-gathering target for subsequent
|
||||
<xref linkend="sql-analyze" endterm="sql-analyze-title"> operations.
|
||||
<xref linkend="sql-analyze"> operations.
|
||||
The target can be set in the range 0 to 10000; alternatively, set it
|
||||
to -1 to revert to using the system default statistics
|
||||
target (<xref linkend="guc-default-statistics-target">).
|
||||
@ -167,7 +167,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
define attribute-level options are <literal>n_distinct</> and
|
||||
<literal>n_distinct_inherited</>, which override the
|
||||
number-of-distinct-values estimate made by subsequent
|
||||
<xref linkend="sql-analyze" endterm="sql-analyze-title">
|
||||
<xref linkend="sql-analyze">
|
||||
operations. <literal>n_distinct</> affects the statistics for the table
|
||||
itself, while <literal>n_distinct_inherited</> affects the statistics
|
||||
gathered for the table and its inheritance children. When set to a
|
||||
@ -223,7 +223,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
This form adds a new constraint to a table using the same syntax as
|
||||
<xref linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">.
|
||||
<xref linkend="SQL-CREATETABLE">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -284,7 +284,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
This form selects the default index for future
|
||||
<xref linkend="SQL-CLUSTER" endterm="sql-cluster-title">
|
||||
<xref linkend="SQL-CLUSTER">
|
||||
operations. It does not actually re-cluster the table.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -295,7 +295,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
This form removes the most recently used
|
||||
<xref linkend="SQL-CLUSTER" endterm="sql-cluster-title">
|
||||
<xref linkend="SQL-CLUSTER">
|
||||
index specification from the table. This affects
|
||||
future cluster operations that don't specify an index.
|
||||
</para>
|
||||
@ -338,12 +338,12 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<para>
|
||||
This form changes one or more storage parameters for the table. See
|
||||
<xref linkend="SQL-CREATETABLE-storage-parameters"
|
||||
endterm="sql-createtable-storage-parameters-title">
|
||||
endterm="SQL-CREATETABLE-storage-parameters-title">
|
||||
for details on the available parameters. Note that the table contents
|
||||
will not be modified immediately by this command; depending on the
|
||||
parameter you might need to rewrite the table to get the desired effects.
|
||||
That can be done with <xref linkend="SQL-CLUSTER"
|
||||
endterm="sql-cluster-title"> or one of the forms of <command>ALTER
|
||||
That can be done with <xref linkend="SQL-CLUSTER">
|
||||
or one of the forms of <command>ALTER
|
||||
TABLE</> that forces a table rewrite.
|
||||
</para>
|
||||
|
||||
@ -426,7 +426,7 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
Indexes on the table, if any, are not moved; but they can be moved
|
||||
separately with additional <literal>SET TABLESPACE</literal> commands.
|
||||
See also
|
||||
<xref linkend="SQL-CREATETABLESPACE" endterm="sql-createtablespace-title">.
|
||||
<xref linkend="SQL-CREATETABLESPACE">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -774,8 +774,7 @@ ALTER TABLE table ALTER COLUMN anycol TYPE anytype;
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Refer to <xref linkend="sql-createtable"
|
||||
endterm="sql-createtable-title"> for a further description of valid
|
||||
Refer to <xref linkend="sql-createtable"> for a further description of valid
|
||||
parameters. <xref linkend="ddl"> has further information on
|
||||
inheritance.
|
||||
</para>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tablespace.sgml,v 1.6 2010/01/05 21:53:58 rhaas Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tablespace.sgml,v 1.7 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTABLESPACE">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERTABLESPACE-TITLE">ALTER TABLESPACE</refentrytitle>
|
||||
<refentrytitle>ALTER TABLESPACE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -128,8 +128,8 @@ ALTER TABLESPACE index_space OWNER TO mary;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtablespace" endterm="sql-createtablespace-title"></member>
|
||||
<member><xref linkend="sql-droptablespace" endterm="sql-droptablespace-title"></member>
|
||||
<member><xref linkend="sql-createtablespace"></member>
|
||||
<member><xref linkend="sql-droptablespace"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_trigger.sgml,v 1.12 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_trigger.sgml,v 1.13 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTRIGGER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-altertrigger-title">ALTER TRIGGER</refentrytitle>
|
||||
<refentrytitle>ALTER TRIGGER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -78,7 +78,7 @@ ALTER TRIGGER <replaceable class="PARAMETER">name</replaceable> ON <replaceable
|
||||
|
||||
<para>
|
||||
The ability to temporarily enable or disable a trigger is provided by
|
||||
<xref linkend="SQL-ALTERTABLE" endterm="SQL-ALTERTABLE-TITLE">, not by
|
||||
<xref linkend="SQL-ALTERTABLE">, not by
|
||||
<command>ALTER TRIGGER</>, because <command>ALTER TRIGGER</> has no
|
||||
convenient way to express the option of enabling or disabling all of
|
||||
a table's triggers at once.
|
||||
@ -109,7 +109,7 @@ ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altertable" endterm="sql-altertable-title"></member>
|
||||
<member><xref linkend="sql-altertable"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsconfig.sgml,v 1.5 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsconfig.sgml,v 1.6 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTSCONFIG">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERTSCONFIG-TITLE">ALTER TEXT SEARCH CONFIGURATION</refentrytitle>
|
||||
<refentrytitle>ALTER TEXT SEARCH CONFIGURATION</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -172,8 +172,8 @@ ALTER TEXT SEARCH CONFIGURATION my_config
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtsconfig" endterm="sql-createtsconfig-title"></member>
|
||||
<member><xref linkend="sql-droptsconfig" endterm="sql-droptsconfig-title"></member>
|
||||
<member><xref linkend="sql-createtsconfig"></member>
|
||||
<member><xref linkend="sql-droptsconfig"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsdictionary.sgml,v 1.5 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsdictionary.sgml,v 1.6 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTSDICTIONARY">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERTSDICTIONARY-TITLE">ALTER TEXT SEARCH DICTIONARY</refentrytitle>
|
||||
<refentrytitle>ALTER TEXT SEARCH DICTIONARY</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -153,8 +153,8 @@ ALTER TEXT SEARCH DICTIONARY my_dict ( dummy );
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtsdictionary" endterm="sql-createtsdictionary-title"></member>
|
||||
<member><xref linkend="sql-droptsdictionary" endterm="sql-droptsdictionary-title"></member>
|
||||
<member><xref linkend="sql-createtsdictionary"></member>
|
||||
<member><xref linkend="sql-droptsdictionary"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsparser.sgml,v 1.3 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tsparser.sgml,v 1.4 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTSPARSER">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERTSPARSER-TITLE">ALTER TEXT SEARCH PARSER</refentrytitle>
|
||||
<refentrytitle>ALTER TEXT SEARCH PARSER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -76,8 +76,8 @@ ALTER TEXT SEARCH PARSER <replaceable>name</replaceable> RENAME TO <replaceable>
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtsparser" endterm="sql-createtsparser-title"></member>
|
||||
<member><xref linkend="sql-droptsparser" endterm="sql-droptsparser-title"></member>
|
||||
<member><xref linkend="sql-createtsparser"></member>
|
||||
<member><xref linkend="sql-droptsparser"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tstemplate.sgml,v 1.3 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_tstemplate.sgml,v 1.4 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTSTEMPLATE">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERTSTEMPLATE-TITLE">ALTER TEXT SEARCH TEMPLATE</refentrytitle>
|
||||
<refentrytitle>ALTER TEXT SEARCH TEMPLATE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -76,8 +76,8 @@ ALTER TEXT SEARCH TEMPLATE <replaceable>name</replaceable> RENAME TO <replaceabl
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtstemplate" endterm="sql-createtstemplate-title"></member>
|
||||
<member><xref linkend="sql-droptstemplate" endterm="sql-droptstemplate-title"></member>
|
||||
<member><xref linkend="sql-createtstemplate"></member>
|
||||
<member><xref linkend="sql-droptstemplate"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_type.sgml,v 1.7 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_type.sgml,v 1.8 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERTYPE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-altertype-title">ALTER TYPE</refentrytitle>
|
||||
<refentrytitle>ALTER TYPE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_user.sgml,v 1.47 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_user.sgml,v 1.48 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERUSER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alteruser-title">ALTER USER</refentrytitle>
|
||||
<refentrytitle>ALTER USER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -49,7 +49,7 @@ ALTER USER <replaceable class="PARAMETER">name</replaceable> RESET ALL
|
||||
|
||||
<para>
|
||||
<command>ALTER USER</command> is now an alias for
|
||||
<xref linkend="sql-alterrole" endterm="sql-alterrole-title">.
|
||||
<xref linkend="sql-alterrole">.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@ -67,7 +67,7 @@ ALTER USER <replaceable class="PARAMETER">name</replaceable> RESET ALL
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterrole" endterm="sql-alterrole-title"></member>
|
||||
<member><xref linkend="sql-alterrole"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_user_mapping.sgml,v 1.4 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_user_mapping.sgml,v 1.5 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERUSERMAPPING">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-alterusermapping-title">ALTER USER MAPPING</refentrytitle>
|
||||
<refentrytitle>ALTER USER MAPPING</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -117,8 +117,8 @@ ALTER USER MAPPING FOR bob SERVER foo OPTIONS (user 'bob', password 'public');
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createusermapping" endterm="sql-createusermapping-title"></member>
|
||||
<member><xref linkend="sql-dropusermapping" endterm="sql-dropusermapping-title"></member>
|
||||
<member><xref linkend="sql-createusermapping"></member>
|
||||
<member><xref linkend="sql-dropusermapping"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_view.sgml,v 1.5 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_view.sgml,v 1.6 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ALTERVIEW">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-ALTERVIEW-TITLE">ALTER VIEW</refentrytitle>
|
||||
<refentrytitle>ALTER VIEW</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -140,8 +140,8 @@ ALTER VIEW foo RENAME TO bar;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createview" endterm="sql-createview-title"></member>
|
||||
<member><xref linkend="sql-dropview" endterm="sql-dropview-title"></member>
|
||||
<member><xref linkend="sql-createview"></member>
|
||||
<member><xref linkend="sql-dropview"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/analyze.sgml,v 1.28 2010/01/22 16:40:18 rhaas Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/analyze.sgml,v 1.29 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-ANALYZE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-analyze-title">ANALYZE</refentrytitle>
|
||||
<refentrytitle>ANALYZE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -102,7 +102,7 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ ( <re
|
||||
just after making major changes in the contents of a table. Accurate
|
||||
statistics will help the planner to choose the most appropriate query
|
||||
plan, and thereby improve the speed of query processing. A common
|
||||
strategy is to run <xref linkend="sql-vacuum" endterm="sql-vacuum-title">
|
||||
strategy is to run <xref linkend="sql-vacuum">
|
||||
and <command>ANALYZE</command> once a day during a low-usage time of day.
|
||||
</para>
|
||||
|
||||
@ -132,7 +132,7 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ ( <re
|
||||
will change slightly each time <command>ANALYZE</command> is run,
|
||||
even if the actual table contents did not change. This might result
|
||||
in small changes in the planner's estimated costs shown by
|
||||
<xref linkend="sql-explain" endterm="sql-explain-title">.
|
||||
<xref linkend="sql-explain">.
|
||||
In rare situations, this non-determinism will cause the planner's
|
||||
choices of query plans to change after <command>ANALYZE</command> is run.
|
||||
To avoid this, raise the amount of statistics collected by
|
||||
@ -144,8 +144,8 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ ( <re
|
||||
<xref linkend="guc-default-statistics-target"> configuration variable, or
|
||||
on a column-by-column basis by setting the per-column statistics
|
||||
target with <command>ALTER TABLE ... ALTER COLUMN ... SET
|
||||
STATISTICS</command> (see <xref linkend="sql-altertable"
|
||||
endterm="sql-altertable-title">). The target value sets the
|
||||
STATISTICS</command> (see <xref linkend="sql-altertable">).
|
||||
The target value sets the
|
||||
maximum number of entries in the most-common-value list and the
|
||||
maximum number of bins in the histogram. The default target value
|
||||
is 100, but this can be adjusted up or down to trade off accuracy of
|
||||
@ -174,7 +174,7 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ ( <re
|
||||
bad query plans, a more accurate value can be determined manually and then
|
||||
installed with
|
||||
<command>ALTER TABLE ... ALTER COLUMN ... SET (n_distinct = ...)</>
|
||||
(see <xref linkend="sql-altertable" endterm="sql-altertable-title">).
|
||||
(see <xref linkend="sql-altertable">).
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@ -190,10 +190,10 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table</replaceable> [ ( <re
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-vacuum" endterm="sql-vacuum-title"></member>
|
||||
<member><xref linkend="app-vacuumdb" endterm="app-vacuumdb-title"></member>
|
||||
<member><xref linkend="runtime-config-resource-vacuum-cost" endterm="runtime-config-resource-vacuum-cost-title"></member>
|
||||
<member><xref linkend="autovacuum" endterm="autovacuum-title"></member>
|
||||
<member><xref linkend="sql-vacuum"></member>
|
||||
<member><xref linkend="app-vacuumdb"></member>
|
||||
<member><xref linkend="runtime-config-resource-vacuum-cost"></member>
|
||||
<member><xref linkend="autovacuum"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/begin.sgml,v 1.38 2009/09/18 05:00:41 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/begin.sgml,v 1.39 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-BEGIN">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-BEGIN-TITLE">BEGIN</refentrytitle>
|
||||
<refentrytitle>BEGIN</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -37,8 +37,8 @@ BEGIN [ WORK | TRANSACTION ] [ <replaceable class="parameter">transaction_mode</
|
||||
<command>BEGIN</command> initiates a transaction block, that is,
|
||||
all statements after a <command>BEGIN</command> command will be
|
||||
executed in a single transaction until an explicit <xref
|
||||
linkend="sql-commit" endterm="sql-commit-title"> or <xref
|
||||
linkend="sql-rollback" endterm="sql-rollback-title"> is given.
|
||||
linkend="sql-commit"> or <xref
|
||||
linkend="sql-rollback"> is given.
|
||||
By default (without <command>BEGIN</command>),
|
||||
<productname>PostgreSQL</productname> executes
|
||||
transactions in <quote>autocommit</quote> mode, that is, each
|
||||
@ -59,7 +59,7 @@ BEGIN [ WORK | TRANSACTION ] [ <replaceable class="parameter">transaction_mode</
|
||||
<para>
|
||||
If the isolation level or read/write mode is specified, the new
|
||||
transaction has those characteristics, as if
|
||||
<xref linkend="sql-set-transaction" endterm="sql-set-transaction-title">
|
||||
<xref linkend="sql-set-transaction">
|
||||
was executed.
|
||||
</para>
|
||||
</refsect1>
|
||||
@ -80,8 +80,7 @@ BEGIN [ WORK | TRANSACTION ] [ <replaceable class="parameter">transaction_mode</
|
||||
</variablelist>
|
||||
|
||||
<para>
|
||||
Refer to <xref linkend="sql-set-transaction"
|
||||
endterm="sql-set-transaction-title"> for information on the meaning
|
||||
Refer to <xref linkend="sql-set-transaction"> for information on the meaning
|
||||
of the other parameters to this statement.
|
||||
</para>
|
||||
</refsect1>
|
||||
@ -90,14 +89,13 @@ BEGIN [ WORK | TRANSACTION ] [ <replaceable class="parameter">transaction_mode</
|
||||
<title>Notes</title>
|
||||
|
||||
<para>
|
||||
<xref linkend="sql-start-transaction"
|
||||
endterm="sql-start-transaction-title"> has the same functionality
|
||||
<xref linkend="sql-start-transaction"> has the same functionality
|
||||
as <command>BEGIN</>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="SQL-COMMIT" endterm="SQL-COMMIT-TITLE"> or
|
||||
<xref linkend="SQL-ROLLBACK" endterm="SQL-ROLLBACK-TITLE">
|
||||
Use <xref linkend="SQL-COMMIT"> or
|
||||
<xref linkend="SQL-ROLLBACK">
|
||||
to terminate a transaction block.
|
||||
</para>
|
||||
|
||||
@ -105,7 +103,7 @@ BEGIN [ WORK | TRANSACTION ] [ <replaceable class="parameter">transaction_mode</
|
||||
Issuing <command>BEGIN</> when already inside a transaction block will
|
||||
provoke a warning message. The state of the transaction is not affected.
|
||||
To nest transactions within a transaction block, use savepoints
|
||||
(see <xref linkend="sql-savepoint" endterm="sql-savepoint-title">).
|
||||
(see <xref linkend="sql-savepoint">).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -133,8 +131,7 @@ BEGIN;
|
||||
<para>
|
||||
<command>BEGIN</command> is a <productname>PostgreSQL</productname>
|
||||
language extension. It is equivalent to the SQL-standard command
|
||||
<xref linkend="sql-start-transaction"
|
||||
endterm="sql-start-transaction-title">, whose reference page
|
||||
<xref linkend="sql-start-transaction">, whose reference page
|
||||
contains additional compatibility information.
|
||||
</para>
|
||||
|
||||
@ -149,10 +146,10 @@ BEGIN;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-commit" endterm="sql-commit-title"></member>
|
||||
<member><xref linkend="sql-rollback" endterm="sql-rollback-title"></member>
|
||||
<member><xref linkend="sql-start-transaction" endterm="sql-start-transaction-title"></member>
|
||||
<member><xref linkend="sql-savepoint" endterm="sql-savepoint-title"></member>
|
||||
<member><xref linkend="sql-commit"></member>
|
||||
<member><xref linkend="sql-rollback"></member>
|
||||
<member><xref linkend="sql-start-transaction"></member>
|
||||
<member><xref linkend="sql-savepoint"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.17 2009/12/19 01:32:31 sriggs Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.18 2010/04/03 07:22:57 petere Exp $ -->
|
||||
|
||||
<refentry id="sql-checkpoint">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-checkpoint-title">CHECKPOINT</refentrytitle>
|
||||
<refentrytitle>CHECKPOINT</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/close.sgml,v 1.28 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/close.sgml,v 1.29 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CLOSE">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-CLOSE-TITLE">CLOSE</refentrytitle>
|
||||
<refentrytitle>CLOSE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -84,7 +84,7 @@ CLOSE { <replaceable class="PARAMETER">name</replaceable> | ALL }
|
||||
<productname>PostgreSQL</productname> does not have an explicit
|
||||
<command>OPEN</command> cursor statement; a cursor is considered
|
||||
open when it is declared. Use the
|
||||
<xref linkend="sql-declare" endterm="sql-declare-title">
|
||||
<xref linkend="sql-declare">
|
||||
statement to declare a cursor.
|
||||
</para>
|
||||
|
||||
@ -125,9 +125,9 @@ CLOSE liahona;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-declare" endterm="sql-declare-title"></member>
|
||||
<member><xref linkend="sql-fetch" endterm="sql-fetch-title"></member>
|
||||
<member><xref linkend="sql-move" endterm="sql-move-title"></member>
|
||||
<member><xref linkend="sql-declare"></member>
|
||||
<member><xref linkend="sql-fetch"></member>
|
||||
<member><xref linkend="sql-move"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/cluster.sgml,v 1.48 2010/02/07 20:48:09 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/cluster.sgml,v 1.49 2010/04/03 07:22:57 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CLUSTER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-cluster-title">CLUSTER</refentrytitle>
|
||||
<refentrytitle>CLUSTER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -141,8 +141,8 @@ CLUSTER [VERBOSE]
|
||||
|
||||
<para>
|
||||
Because the planner records statistics about the ordering of
|
||||
tables, it is advisable to run <xref linkend="sql-analyze"
|
||||
endterm="sql-analyze-title"> on the newly clustered table.
|
||||
tables, it is advisable to run <xref linkend="sql-analyze">
|
||||
on the newly clustered table.
|
||||
Otherwise, the planner might make poor choices of query plans.
|
||||
</para>
|
||||
|
||||
@ -226,7 +226,7 @@ CLUSTER <replaceable class="PARAMETER">index_name</replaceable> ON <replaceable
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="app-clusterdb" endterm="app-clusterdb-title"></member>
|
||||
<member><xref linkend="app-clusterdb"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/clusterdb.sgml,v 1.27 2010/02/19 14:36:45 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/clusterdb.sgml,v 1.28 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="APP-CLUSTERDB">
|
||||
<refmeta>
|
||||
<refentrytitle id="APP-CLUSTERDB-TITLE"><application>clusterdb</application></refentrytitle>
|
||||
<refentrytitle><application>clusterdb</application></refentrytitle>
|
||||
<manvolnum>1</manvolnum>
|
||||
<refmiscinfo>Application</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -48,7 +48,7 @@ PostgreSQL documentation
|
||||
|
||||
<para>
|
||||
<application>clusterdb</application> is a wrapper around the SQL
|
||||
command <xref linkend="SQL-CLUSTER" endterm="sql-cluster-title">.
|
||||
command <xref linkend="SQL-CLUSTER">.
|
||||
There is no effective difference between clustering databases via
|
||||
this utility and via other methods for accessing the server.
|
||||
</para>
|
||||
@ -263,8 +263,8 @@ PostgreSQL documentation
|
||||
<title>Diagnostics</title>
|
||||
|
||||
<para>
|
||||
In case of difficulty, see <xref linkend="SQL-CLUSTER"
|
||||
endterm="sql-cluster-title"> and <xref linkend="APP-PSQL"> for
|
||||
In case of difficulty, see <xref linkend="SQL-CLUSTER">
|
||||
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
|
||||
@ -300,7 +300,7 @@ PostgreSQL documentation
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-cluster" endterm="sql-cluster-title"></member>
|
||||
<member><xref linkend="sql-cluster"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/comment.sgml,v 1.39 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/comment.sgml,v 1.40 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-COMMENT">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-COMMENT-TITLE">COMMENT</refentrytitle>
|
||||
<refentrytitle>COMMENT</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/commit.sgml,v 1.21 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/commit.sgml,v 1.22 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-COMMIT">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-COMMIT-TITLE">COMMIT</refentrytitle>
|
||||
<refentrytitle>COMMIT</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -55,7 +55,7 @@ COMMIT [ WORK | TRANSACTION ]
|
||||
<title>Notes</title>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="SQL-ROLLBACK" endterm="SQL-ROLLBACK-TITLE"> to
|
||||
Use <xref linkend="SQL-ROLLBACK"> to
|
||||
abort a transaction.
|
||||
</para>
|
||||
|
||||
@ -90,8 +90,8 @@ COMMIT;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-begin" endterm="sql-begin-title"></member>
|
||||
<member><xref linkend="sql-rollback" endterm="sql-rollback-title"></member>
|
||||
<member><xref linkend="sql-begin"></member>
|
||||
<member><xref linkend="sql-rollback"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/commit_prepared.sgml,v 1.4 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/commit_prepared.sgml,v 1.5 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-COMMIT-PREPARED">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-commit-prepared-title">COMMIT PREPARED</refentrytitle>
|
||||
<refentrytitle>COMMIT PREPARED</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -88,8 +88,8 @@ COMMIT PREPARED 'foobar';
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-prepare-transaction" endterm="sql-prepare-transaction-title"></member>
|
||||
<member><xref linkend="sql-rollback-prepared" endterm="sql-rollback-prepared-title"></member>
|
||||
<member><xref linkend="sql-prepare-transaction"></member>
|
||||
<member><xref linkend="sql-rollback-prepared"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.95 2010/02/23 21:38:35 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/copy.sgml,v 1.96 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
|
||||
<refentry id="SQL-COPY">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-copy-title">COPY</refentrytitle>
|
||||
<refentrytitle>COPY</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -103,8 +103,8 @@ COPY { <replaceable class="parameter">table_name</replaceable> [ ( <replaceable
|
||||
<term><replaceable class="parameter">query</replaceable></term>
|
||||
<listitem>
|
||||
<para>
|
||||
A <xref linkend="sql-select" endterm="sql-select-title"> or
|
||||
<xref linkend="sql-values" endterm="sql-values-title"> command
|
||||
A <xref linkend="sql-select"> or
|
||||
<xref linkend="sql-values"> command
|
||||
whose results are to be copied.
|
||||
Note that parentheses are required around the query.
|
||||
</para>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_aggregate.sgml,v 1.39 2008/11/14 10:22:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_aggregate.sgml,v 1.40 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEAGGREGATE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createaggregate-title">CREATE AGGREGATE</refentrytitle>
|
||||
<refentrytitle>CREATE AGGREGATE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -304,8 +304,8 @@ SELECT col FROM tab ORDER BY col USING sortop LIMIT 1;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alteraggregate" endterm="sql-alteraggregate-title"></member>
|
||||
<member><xref linkend="sql-dropaggregate" endterm="sql-dropaggregate-title"></member>
|
||||
<member><xref linkend="sql-alteraggregate"></member>
|
||||
<member><xref linkend="sql-dropaggregate"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/create_cast.sgml,v 1.32 2009/09/19 10:23:26 petere Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/create_cast.sgml,v 1.33 2010/04/03 07:22:58 petere Exp $ -->
|
||||
|
||||
<refentry id="SQL-CREATECAST">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-CREATECAST-TITLE">CREATE CAST</refentrytitle>
|
||||
<refentrytitle>CREATE CAST</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -150,7 +150,7 @@ SELECT CAST ( 2 AS numeric ) + 4.0;
|
||||
ambiguity that cannot be avoided as above. The parser has a fallback
|
||||
heuristic based on <firstterm>type categories</> and <firstterm>preferred
|
||||
types</> that can help to provide desired behavior in such cases. See
|
||||
<xref linkend="sql-createtype" endterm="sql-createtype-title"> for
|
||||
<xref linkend="sql-createtype"> for
|
||||
more information.
|
||||
</para>
|
||||
</note>
|
||||
@ -290,8 +290,7 @@ SELECT CAST ( 2 AS numeric ) + 4.0;
|
||||
<title>Notes</title>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="sql-dropcast"
|
||||
endterm="sql-dropcast-title"> to remove user-defined casts.
|
||||
Use <xref linkend="sql-dropcast"> to remove user-defined casts.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -401,9 +400,9 @@ CREATE CAST (bigint AS int4) WITH FUNCTION int4(bigint) AS ASSIGNMENT;
|
||||
<title>See Also</title>
|
||||
|
||||
<para>
|
||||
<xref linkend="sql-createfunction" endterm="sql-createfunction-title">,
|
||||
<xref linkend="sql-createtype" endterm="sql-createtype-title">,
|
||||
<xref linkend="sql-dropcast" endterm="sql-dropcast-title">
|
||||
<xref linkend="sql-createfunction">,
|
||||
<xref linkend="sql-createtype">,
|
||||
<xref linkend="sql-dropcast">
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_constraint.sgml,v 1.21 2009/11/20 20:38:09 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_constraint.sgml,v 1.22 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATECONSTRAINT">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createconstraint-title">CREATE CONSTRAINT TRIGGER</refentrytitle>
|
||||
<refentrytitle>CREATE CONSTRAINT TRIGGER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -39,7 +39,7 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
|
||||
<command>CREATE CONSTRAINT TRIGGER</command> creates a
|
||||
<firstterm>constraint trigger</>. This is the same as a regular trigger
|
||||
except that the timing of the trigger firing can be adjusted using
|
||||
<xref linkend="SQL-SET-CONSTRAINTS" endterm="SQL-SET-CONSTRAINTS-TITLE">.
|
||||
<xref linkend="SQL-SET-CONSTRAINTS">.
|
||||
Constraint triggers must be <literal>AFTER ROW</> triggers. They can
|
||||
be fired either at the end of the statement causing the triggering event,
|
||||
or at the end of the containing transaction; in the latter case they are
|
||||
@ -104,7 +104,7 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
The default timing of the trigger.
|
||||
See the <xref linkend="SQL-CREATETABLE" endterm="SQL-CREATETABLE-TITLE">
|
||||
See the <xref linkend="SQL-CREATETABLE">
|
||||
documentation for details of these constraint options.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -116,7 +116,7 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
|
||||
<para>
|
||||
A Boolean expression that determines whether the trigger function
|
||||
will actually be executed. This acts the same as in <xref
|
||||
linkend="SQL-CREATETRIGGER" endterm="SQL-CREATETRIGGER-TITLE">.
|
||||
linkend="SQL-CREATETRIGGER">.
|
||||
Note in particular that evaluation of the <literal>WHEN</>
|
||||
condition is not deferred, but occurs immediately after the row
|
||||
update operation is performed. If the condition does not evaluate
|
||||
@ -131,7 +131,7 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
The function to call when the trigger is fired. See <xref
|
||||
linkend="SQL-CREATETRIGGER" endterm="SQL-CREATETRIGGER-TITLE"> for
|
||||
linkend="SQL-CREATETRIGGER"> for
|
||||
details.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -142,7 +142,7 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
|
||||
<listitem>
|
||||
<para>
|
||||
Optional argument strings to pass to the trigger function. See <xref
|
||||
linkend="SQL-CREATETRIGGER" endterm="SQL-CREATETRIGGER-TITLE"> for
|
||||
linkend="SQL-CREATETRIGGER"> for
|
||||
details.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -163,9 +163,9 @@ CREATE CONSTRAINT TRIGGER <replaceable class="parameter">name</replaceable>
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtrigger" endterm="sql-createtrigger-title"></member>
|
||||
<member><xref linkend="sql-droptrigger" endterm="sql-droptrigger-title"></member>
|
||||
<member><xref linkend="sql-set-constraints" endterm="sql-set-constraints-title"></member>
|
||||
<member><xref linkend="sql-createtrigger"></member>
|
||||
<member><xref linkend="sql-droptrigger"></member>
|
||||
<member><xref linkend="sql-set-constraints"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/create_conversion.sgml,v 1.22 2009/09/19 10:23:26 petere Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/create_conversion.sgml,v 1.23 2010/04/03 07:22:58 petere Exp $ -->
|
||||
|
||||
<refentry id="SQL-CREATECONVERSION">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-CREATECONVERSION-TITLE">CREATE CONVERSION</refentrytitle>
|
||||
<refentrytitle>CREATE CONVERSION</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -162,9 +162,9 @@ CREATE CONVERSION myconv FOR 'UTF8' TO 'LATIN1' FROM myfunc;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterconversion" endterm="sql-alterconversion-title"></member>
|
||||
<member><xref linkend="sql-createfunction" endterm="sql-createfunction-title"></member>
|
||||
<member><xref linkend="sql-dropconversion" endterm="sql-dropconversion-title"></member>
|
||||
<member><xref linkend="sql-alterconversion"></member>
|
||||
<member><xref linkend="sql-createfunction"></member>
|
||||
<member><xref linkend="sql-dropconversion"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_database.sgml,v 1.53 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_database.sgml,v 1.54 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEDATABASE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createdatabase-title">CREATE DATABASE</refentrytitle>
|
||||
<refentrytitle>CREATE DATABASE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -43,7 +43,7 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
|
||||
<para>
|
||||
To create a database, you must be a superuser or have the special
|
||||
<literal>CREATEDB</> privilege.
|
||||
See <xref linkend="SQL-CREATEUSER" endterm="SQL-CREATEUSER-title">.
|
||||
See <xref linkend="SQL-CREATEUSER">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -147,7 +147,7 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
|
||||
template database's tablespace. This
|
||||
tablespace will be the default tablespace used for objects
|
||||
created in this database. See
|
||||
<xref linkend="sql-createtablespace" endterm="sql-createtablespace-title">
|
||||
<xref linkend="sql-createtablespace">
|
||||
for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -185,11 +185,11 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="SQL-DROPDATABASE" endterm="SQL-DROPDATABASE-title"> to remove a database.
|
||||
Use <xref linkend="SQL-DROPDATABASE"> to remove a database.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The program <xref linkend="APP-CREATEDB" endterm="APP-CREATEDB-title"> is a
|
||||
The program <xref linkend="APP-CREATEDB"> is a
|
||||
wrapper program around this command, provided for convenience.
|
||||
</para>
|
||||
|
||||
@ -287,8 +287,8 @@ CREATE DATABASE music ENCODING 'LATIN1' TEMPLATE template0;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterdatabase" endterm="sql-alterdatabase-title"></member>
|
||||
<member><xref linkend="sql-dropdatabase" endterm="sql-dropdatabase-title"></member>
|
||||
<member><xref linkend="sql-alterdatabase"></member>
|
||||
<member><xref linkend="sql-dropdatabase"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.33 2009/09/18 05:00:41 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.34 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEDOMAIN">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createdomain-title">CREATE DOMAIN</refentrytitle>
|
||||
<refentrytitle>CREATE DOMAIN</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -201,8 +201,8 @@ CREATE TABLE us_snail_addy (
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterdomain" endterm="sql-alterdomain-title"></member>
|
||||
<member><xref linkend="sql-dropdomain" endterm="sql-dropdomain-title"></member>
|
||||
<member><xref linkend="sql-alterdomain"></member>
|
||||
<member><xref linkend="sql-dropdomain"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_foreign_data_wrapper.sgml,v 1.6 2009/12/23 12:23:58 heikki Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_foreign_data_wrapper.sgml,v 1.7 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEFOREIGNDATAWRAPPER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createforeigndatawrapper-title">CREATE FOREIGN DATA WRAPPER</refentrytitle>
|
||||
<refentrytitle>CREATE FOREIGN DATA WRAPPER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -167,10 +167,10 @@ CREATE FOREIGN DATA WRAPPER mywrapper
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterforeigndatawrapper" endterm="sql-alterforeigndatawrapper-title"></member>
|
||||
<member><xref linkend="sql-dropforeigndatawrapper" endterm="sql-dropforeigndatawrapper-title"></member>
|
||||
<member><xref linkend="sql-createserver" endterm="sql-createserver-title"></member>
|
||||
<member><xref linkend="sql-createusermapping" endterm="sql-createusermapping-title"></member>
|
||||
<member><xref linkend="sql-alterforeigndatawrapper"></member>
|
||||
<member><xref linkend="sql-dropforeigndatawrapper"></member>
|
||||
<member><xref linkend="sql-createserver"></member>
|
||||
<member><xref linkend="sql-createusermapping"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.93 2010/03/03 03:23:12 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_function.sgml,v 1.94 2010/04/03 07:22:58 petere Exp $
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEFUNCTION">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-CREATEFUNCTION-TITLE">CREATE FUNCTION</refentrytitle>
|
||||
<refentrytitle>CREATE FUNCTION</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -423,7 +423,7 @@ CREATE [ OR REPLACE ] FUNCTION
|
||||
</para>
|
||||
|
||||
<para>
|
||||
See <xref linkend="sql-set" endterm="sql-set-title"> and
|
||||
See <xref linkend="sql-set"> and
|
||||
<xref linkend="runtime-config">
|
||||
for more information about allowed parameter names and values.
|
||||
</para>
|
||||
@ -702,7 +702,7 @@ $$ LANGUAGE plpgsql
|
||||
<para>
|
||||
Another point to keep in mind is that by default, execute privilege
|
||||
is granted to <literal>PUBLIC</> for newly created functions
|
||||
(see <xref linkend="sql-grant" endterm="sql-grant-title"> for more
|
||||
(see <xref linkend="sql-grant"> for more
|
||||
information). Frequently you will wish to restrict use of a security
|
||||
definer function to only some users. To do that, you must revoke
|
||||
the default <literal>PUBLIC</> privileges and then grant execute
|
||||
@ -752,12 +752,12 @@ COMMIT;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterfunction" endterm="sql-alterfunction-title"></member>
|
||||
<member><xref linkend="sql-dropfunction" endterm="sql-dropfunction-title"></member>
|
||||
<member><xref linkend="sql-grant" endterm="sql-grant-title"></member>
|
||||
<member><xref linkend="sql-load" endterm="sql-load-title"></member>
|
||||
<member><xref linkend="sql-revoke" endterm="sql-revoke-title"></member>
|
||||
<member><xref linkend="app-createlang" endterm="app-createlang-title"></member>
|
||||
<member><xref linkend="sql-alterfunction"></member>
|
||||
<member><xref linkend="sql-dropfunction"></member>
|
||||
<member><xref linkend="sql-grant"></member>
|
||||
<member><xref linkend="sql-load"></member>
|
||||
<member><xref linkend="sql-revoke"></member>
|
||||
<member><xref linkend="app-createlang"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_group.sgml,v 1.21 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_group.sgml,v 1.22 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEGROUP">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-creategroup-title">CREATE GROUP</refentrytitle>
|
||||
<refentrytitle>CREATE GROUP</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -47,7 +47,7 @@ CREATE GROUP <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <repla
|
||||
|
||||
<para>
|
||||
<command>CREATE GROUP</command> is now an alias for
|
||||
<xref linkend="sql-createrole" endterm="sql-createrole-title">.
|
||||
<xref linkend="sql-createrole">.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
@ -64,7 +64,7 @@ CREATE GROUP <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <repla
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createrole" endterm="sql-createrole-title"></member>
|
||||
<member><xref linkend="sql-createrole"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_index.sgml,v 1.73 2010/03/17 15:55:50 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_index.sgml,v 1.74 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEINDEX">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createindex-title">CREATE INDEX</refentrytitle>
|
||||
<refentrytitle>CREATE INDEX</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -488,7 +488,7 @@ Indexes:
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="sql-dropindex" endterm="sql-dropindex-title">
|
||||
Use <xref linkend="sql-dropindex">
|
||||
to remove an index.
|
||||
</para>
|
||||
|
||||
@ -588,8 +588,8 @@ CREATE INDEX CONCURRENTLY sales_quantity_index ON sales_table (quantity);
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterindex" endterm="sql-alterindex-title"></member>
|
||||
<member><xref linkend="sql-dropindex" endterm="sql-dropindex-title"></member>
|
||||
<member><xref linkend="sql-alterindex"></member>
|
||||
<member><xref linkend="sql-dropindex"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_language.sgml,v 1.49 2010/02/23 22:51:42 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_language.sgml,v 1.50 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATELANGUAGE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createlanguage-title">CREATE LANGUAGE</refentrytitle>
|
||||
<refentrytitle>CREATE LANGUAGE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -168,7 +168,7 @@ CREATE [ OR REPLACE ] [ TRUSTED ] [ PROCEDURAL ] LANGUAGE <replaceable class="pa
|
||||
<replaceable class="parameter">inline_handler</replaceable> is the
|
||||
name of a previously registered function that will be called
|
||||
to execute an anonymous code block
|
||||
(<xref linkend="sql-do" endterm="sql-do-title"> command)
|
||||
(<xref linkend="sql-do"> command)
|
||||
in this language.
|
||||
If no <replaceable class="parameter">inline_handler</replaceable>
|
||||
function is specified, the language does not support anonymous code
|
||||
@ -227,7 +227,7 @@ CREATE [ OR REPLACE ] [ TRUSTED ] [ PROCEDURAL ] LANGUAGE <replaceable class="pa
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="sql-droplanguage" endterm="sql-droplanguage-title">, or better yet the <xref
|
||||
Use <xref linkend="sql-droplanguage">, or better yet the <xref
|
||||
linkend="app-droplang"> program, to drop procedural languages.
|
||||
</para>
|
||||
|
||||
@ -312,13 +312,13 @@ CREATE LANGUAGE plsample
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterlanguage" endterm="sql-alterlanguage-title"></member>
|
||||
<member><xref linkend="sql-createfunction" endterm="sql-createfunction-title"></member>
|
||||
<member><xref linkend="sql-droplanguage" endterm="sql-droplanguage-title"></member>
|
||||
<member><xref linkend="sql-grant" endterm="sql-grant-title"></member>
|
||||
<member><xref linkend="sql-revoke" endterm="sql-revoke-title"></member>
|
||||
<member><xref linkend="app-createlang" endterm="app-createlang-title"></member>
|
||||
<member><xref linkend="app-droplang" endterm="app-droplang-title"></member>
|
||||
<member><xref linkend="sql-alterlanguage"></member>
|
||||
<member><xref linkend="sql-createfunction"></member>
|
||||
<member><xref linkend="sql-droplanguage"></member>
|
||||
<member><xref linkend="sql-grant"></member>
|
||||
<member><xref linkend="sql-revoke"></member>
|
||||
<member><xref linkend="app-createlang"></member>
|
||||
<member><xref linkend="app-droplang"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_opclass.sgml,v 1.24 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_opclass.sgml,v 1.25 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEOPCLASS">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createopclass-title">CREATE OPERATOR CLASS</refentrytitle>
|
||||
<refentrytitle>CREATE OPERATOR CLASS</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -297,10 +297,10 @@ CREATE OPERATOR CLASS gist__int_ops
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alteropclass" endterm="sql-alteropclass-title"></member>
|
||||
<member><xref linkend="sql-dropopclass" endterm="sql-dropopclass-title"></member>
|
||||
<member><xref linkend="sql-createopfamily" endterm="sql-createopfamily-title"></member>
|
||||
<member><xref linkend="sql-alteropfamily" endterm="sql-alteropfamily-title"></member>
|
||||
<member><xref linkend="sql-alteropclass"></member>
|
||||
<member><xref linkend="sql-dropopclass"></member>
|
||||
<member><xref linkend="sql-createopfamily"></member>
|
||||
<member><xref linkend="sql-alteropfamily"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.51 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.52 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEOPERATOR">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createoperator-title">CREATE OPERATOR</refentrytitle>
|
||||
<refentrytitle>CREATE OPERATOR</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -231,10 +231,8 @@ COMMUTATOR = OPERATOR(myschema.===) ,
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="sql-dropoperator"
|
||||
endterm="sql-dropoperator-title"> to delete user-defined operators
|
||||
from a database. Use <xref linkend="sql-alteroperator"
|
||||
endterm="sql-alteroperator-title"> to modify operators in a
|
||||
Use <xref linkend="sql-dropoperator"> to delete user-defined operators
|
||||
from a database. Use <xref linkend="sql-alteroperator"> to modify operators in a
|
||||
database.
|
||||
</para>
|
||||
</refsect1>
|
||||
@ -274,9 +272,9 @@ CREATE OPERATOR === (
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alteroperator" endterm="sql-alteroperator-title"></member>
|
||||
<member><xref linkend="sql-createopclass" endterm="sql-createopclass-title"></member>
|
||||
<member><xref linkend="sql-dropoperator" endterm="sql-dropoperator-title"></member>
|
||||
<member><xref linkend="sql-alteroperator"></member>
|
||||
<member><xref linkend="sql-createopclass"></member>
|
||||
<member><xref linkend="sql-dropoperator"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_opfamily.sgml,v 1.4 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_opfamily.sgml,v 1.5 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEOPFAMILY">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createopfamily-title">CREATE OPERATOR FAMILY</refentrytitle>
|
||||
<refentrytitle>CREATE OPERATOR FAMILY</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -108,11 +108,11 @@ CREATE OPERATOR FAMILY <replaceable class="parameter">name</replaceable> USING <
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alteropfamily" endterm="sql-alteropfamily-title"></member>
|
||||
<member><xref linkend="sql-dropopfamily" endterm="sql-dropopfamily-title"></member>
|
||||
<member><xref linkend="sql-createopclass" endterm="sql-createopclass-title"></member>
|
||||
<member><xref linkend="sql-alteropclass" endterm="sql-alteropclass-title"></member>
|
||||
<member><xref linkend="sql-dropopclass" endterm="sql-dropopclass-title"></member>
|
||||
<member><xref linkend="sql-alteropfamily"></member>
|
||||
<member><xref linkend="sql-dropopfamily"></member>
|
||||
<member><xref linkend="sql-createopclass"></member>
|
||||
<member><xref linkend="sql-alteropclass"></member>
|
||||
<member><xref linkend="sql-dropopclass"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_role.sgml,v 1.13 2009/09/19 10:23:26 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_role.sgml,v 1.14 2010/04/03 07:22:58 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATEROLE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createrole-title">CREATE ROLE</refentrytitle>
|
||||
<refentrytitle>CREATE ROLE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -307,9 +307,9 @@ CREATE ROLE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replac
|
||||
<title>Notes</title>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="SQL-ALTERROLE" endterm="SQL-ALTERROLE-title"> to
|
||||
change the attributes of a role, and <xref linkend="SQL-DROPROLE"
|
||||
endterm="SQL-DROPROLE-title"> to remove a role. All the attributes
|
||||
Use <xref linkend="SQL-ALTERROLE"> to
|
||||
change the attributes of a role, and <xref linkend="SQL-DROPROLE">
|
||||
to remove a role. All the attributes
|
||||
specified by <command>CREATE ROLE</> can be modified by later
|
||||
<command>ALTER ROLE</> commands.
|
||||
</para>
|
||||
@ -317,8 +317,8 @@ CREATE ROLE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replac
|
||||
<para>
|
||||
The preferred way to add and remove members of roles that are being
|
||||
used as groups is to use
|
||||
<xref linkend="SQL-GRANT" endterm="SQL-GRANT-title"> and
|
||||
<xref linkend="SQL-REVOKE" endterm="SQL-REVOKE-title">.
|
||||
<xref linkend="SQL-GRANT"> and
|
||||
<xref linkend="SQL-REVOKE">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -336,7 +336,7 @@ CREATE ROLE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replac
|
||||
a member of a role with <literal>CREATEDB</> privilege does not immediately
|
||||
grant the ability to create databases, even if <literal>INHERIT</> is set;
|
||||
it would be necessary to become that role via
|
||||
<xref linkend="SQL-SET-ROLE" endterm="SQL-SET-ROLE-title"> before
|
||||
<xref linkend="SQL-SET-ROLE"> before
|
||||
creating a database.
|
||||
</para>
|
||||
|
||||
@ -363,7 +363,7 @@ CREATE ROLE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replac
|
||||
|
||||
<para>
|
||||
<productname>PostgreSQL</productname> includes a program <xref
|
||||
linkend="APP-CREATEUSER" endterm="APP-CREATEUSER-title"> that has
|
||||
linkend="APP-CREATEUSER"> that has
|
||||
the same functionality as <command>CREATE ROLE</command> (in fact,
|
||||
it calls this command) but can be run from the command shell.
|
||||
</para>
|
||||
@ -380,9 +380,9 @@ CREATE ROLE <replaceable class="PARAMETER">name</replaceable> [ [ WITH ] <replac
|
||||
with this command. The password will be transmitted to the server
|
||||
in cleartext, and it might also be logged in the client's command
|
||||
history or the server log. The command <xref
|
||||
linkend="APP-CREATEUSER" endterm="APP-CREATEUSER-title">, however, transmits
|
||||
the password encrypted. Also, <xref linkend="app-psql"
|
||||
endterm="app-psql-title"> contains a command
|
||||
linkend="APP-CREATEUSER">, however, transmits
|
||||
the password encrypted. Also, <xref linkend="app-psql">
|
||||
contains a command
|
||||
<command>\password</command> that can be used to safely change the
|
||||
password later.
|
||||
</para>
|
||||
@ -459,11 +459,11 @@ CREATE ROLE <replaceable class="PARAMETER">name</> [ WITH ADMIN <replaceable cla
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-set-role" endterm="sql-set-role-title"></member>
|
||||
<member><xref linkend="sql-alterrole" endterm="sql-alterrole-title"></member>
|
||||
<member><xref linkend="sql-droprole" endterm="sql-droprole-title"></member>
|
||||
<member><xref linkend="sql-grant" endterm="sql-grant-title"></member>
|
||||
<member><xref linkend="sql-revoke" endterm="sql-revoke-title"></member>
|
||||
<member><xref linkend="sql-set-role"></member>
|
||||
<member><xref linkend="sql-alterrole"></member>
|
||||
<member><xref linkend="sql-droprole"></member>
|
||||
<member><xref linkend="sql-grant"></member>
|
||||
<member><xref linkend="sql-revoke"></member>
|
||||
<member><xref linkend="app-createuser"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.53 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.54 2010/04/03 07:22:59 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATERULE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createrule-title">CREATE RULE</refentrytitle>
|
||||
<refentrytitle>CREATE RULE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_schema.sgml,v 1.21 2009/09/19 10:23:27 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_schema.sgml,v 1.22 2010/04/03 07:22:59 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATESCHEMA">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createschema-title">CREATE SCHEMA</refentrytitle>
|
||||
<refentrytitle>CREATE SCHEMA</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -184,8 +184,8 @@ CREATE VIEW hollywood.winners AS
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterschema" endterm="sql-alterschema-title"></member>
|
||||
<member><xref linkend="sql-dropschema" endterm="sql-dropschema-title"></member>
|
||||
<member><xref linkend="sql-alterschema"></member>
|
||||
<member><xref linkend="sql-dropschema"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_sequence.sgml,v 1.49 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_sequence.sgml,v 1.50 2010/04/03 07:22:59 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATESEQUENCE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createsequence-title">CREATE SEQUENCE</refentrytitle>
|
||||
<refentrytitle>CREATE SEQUENCE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -356,8 +356,8 @@ END;
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altersequence" endterm="sql-altersequence-title"></member>
|
||||
<member><xref linkend="sql-dropsequence" endterm="sql-dropsequence-title"></member>
|
||||
<member><xref linkend="sql-altersequence"></member>
|
||||
<member><xref linkend="sql-dropsequence"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_server.sgml,v 1.6 2009/09/19 10:23:27 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_server.sgml,v 1.7 2010/04/03 07:22:59 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATESERVER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createserver-title">CREATE SERVER</refentrytitle>
|
||||
<refentrytitle>CREATE SERVER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -152,10 +152,10 @@ CREATE SERVER myserver FOREIGN DATA WRAPPER pgsql OPTIONS (host 'foo', dbname 'f
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-alterserver" endterm="sql-alterserver-title"></member>
|
||||
<member><xref linkend="sql-dropserver" endterm="sql-dropserver-title"></member>
|
||||
<member><xref linkend="sql-createforeigndatawrapper" endterm="sql-createforeigndatawrapper-title"></member>
|
||||
<member><xref linkend="sql-createusermapping" endterm="sql-createusermapping-title"></member>
|
||||
<member><xref linkend="sql-alterserver"></member>
|
||||
<member><xref linkend="sql-dropserver"></member>
|
||||
<member><xref linkend="sql-createforeigndatawrapper"></member>
|
||||
<member><xref linkend="sql-createusermapping"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.124 2010/04/01 00:18:21 momjian Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table.sgml,v 1.125 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETABLE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtable-title">CREATE TABLE</refentrytitle>
|
||||
<refentrytitle>CREATE TABLE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -484,7 +484,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
Each <replaceable class="parameter">exclude_element</replaceable>
|
||||
can optionally specify an operator class and/or ordering options;
|
||||
these are described fully under
|
||||
<xref linkend="sql-createindex" endterm="sql-createindex-title">.
|
||||
<xref linkend="sql-createindex">.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -630,7 +630,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
constraint that is not deferrable will be checked immediately
|
||||
after every command. Checking of constraints that are
|
||||
deferrable can be postponed until the end of the transaction
|
||||
(using the <xref linkend="sql-set-constraints" endterm="sql-set-constraints-title"> command).
|
||||
(using the <xref linkend="sql-set-constraints"> command).
|
||||
<literal>NOT DEFERRABLE</literal> is the default.
|
||||
Currently, only <literal>UNIQUE</>, <literal>PRIMARY KEY</>,
|
||||
<literal>EXCLUDE</>, and
|
||||
@ -652,7 +652,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
statement. This is the default. If the constraint is
|
||||
<literal>INITIALLY DEFERRED</literal>, it is checked only at the
|
||||
end of the transaction. The constraint check time can be
|
||||
altered with the <xref linkend="sql-set-constraints" endterm="sql-set-constraints-title"> command.
|
||||
altered with the <xref linkend="sql-set-constraints"> command.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -690,7 +690,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
|
||||
<para>
|
||||
To remove OIDs from a table after it has been created, use <xref
|
||||
linkend="sql-altertable" endterm="sql-altertable-title">.
|
||||
linkend="sql-altertable">.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -733,7 +733,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
<para>
|
||||
All rows in the temporary table will be deleted at the end
|
||||
of each transaction block. Essentially, an automatic <xref
|
||||
linkend="sql-truncate" endterm="sql-truncate-title"> is done
|
||||
linkend="sql-truncate"> is done
|
||||
at each commit.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -794,8 +794,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
for tables, and for indexes associated with a <literal>UNIQUE</literal>,
|
||||
<literal>PRIMARY KEY</literal>, or <literal>EXCLUDE</> constraint.
|
||||
Storage parameters for
|
||||
indexes are documented in <xref linkend="SQL-CREATEINDEX"
|
||||
endterm="sql-createindex-title">. The storage parameters currently
|
||||
indexes are documented in <xref linkend="SQL-CREATEINDEX">. The storage parameters currently
|
||||
available for tables are listed below. For each parameter, unless noted,
|
||||
there is an additional, identically named parameter, prefixed with
|
||||
<literal>toast.</literal> which can be used to control the behavior of the
|
||||
@ -978,7 +977,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable class="PAR
|
||||
index for each unique constraint and primary key constraint to
|
||||
enforce uniqueness. Thus, it is not necessary to create an
|
||||
index explicitly for primary key columns. (See <xref
|
||||
linkend="sql-createindex" endterm="sql-createindex-title"> for more information.)
|
||||
linkend="sql-createindex"> for more information.)
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -1380,10 +1379,10 @@ CREATE TABLE employees OF employee_type (
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altertable" endterm="sql-altertable-title"></member>
|
||||
<member><xref linkend="sql-droptable" endterm="sql-droptable-title"></member>
|
||||
<member><xref linkend="sql-createtablespace" endterm="sql-createtablespace-title"></member>
|
||||
<member><xref linkend="sql-createtype" endterm="sql-createtype-title"></member>
|
||||
<member><xref linkend="sql-altertable"></member>
|
||||
<member><xref linkend="sql-droptable"></member>
|
||||
<member><xref linkend="sql-createtablespace"></member>
|
||||
<member><xref linkend="sql-createtype"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.40 2008/11/20 14:04:45 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.41 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETABLEAS">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtableas-title">CREATE TABLE AS</refentrytitle>
|
||||
<refentrytitle>CREATE TABLE AS</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -63,7 +63,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
|
||||
<listitem>
|
||||
<para>
|
||||
Ignored for compatibility. Refer to <xref
|
||||
linkend="sql-createtable" endterm="sql-createtable-title"> for
|
||||
linkend="sql-createtable"> for
|
||||
details.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -76,7 +76,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
|
||||
<listitem>
|
||||
<para>
|
||||
If specified, the table is created as a temporary table.
|
||||
Refer to <xref linkend="sql-createtable" endterm="sql-createtable-title"> for details.
|
||||
Refer to <xref linkend="sql-createtable"> for details.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -115,8 +115,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
|
||||
to specify that rows of the new table
|
||||
should have OIDs (object identifiers) assigned to them, or
|
||||
<literal>OIDS=FALSE</> to specify that the rows should not have OIDs.
|
||||
See <xref linkend="sql-createtable"
|
||||
endterm="sql-createtable-title"> for more information.
|
||||
See <xref linkend="sql-createtable"> for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
@ -159,7 +158,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
|
||||
<para>
|
||||
All rows in the temporary table will be deleted at the end
|
||||
of each transaction block. Essentially, an automatic <xref
|
||||
linkend="sql-truncate" endterm="sql-truncate-title"> is done
|
||||
linkend="sql-truncate"> is done
|
||||
at each commit.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -197,10 +196,10 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
|
||||
<listitem>
|
||||
<para>
|
||||
A <xref linkend="sql-select"
|
||||
endterm="sql-select-title">, <link linkend="sql-table">TABLE</link>,
|
||||
>, <link linkend="sql-table">TABLE</link>,
|
||||
or
|
||||
<xref linkend="sql-values" endterm="sql-values-title"> command,
|
||||
or an <xref linkend="sql-execute" endterm="sql-execute-title"> command
|
||||
<xref linkend="sql-values"> command,
|
||||
or an <xref linkend="sql-execute"> command
|
||||
that runs a prepared <command>SELECT</>, <command>TABLE</>, or <command>VALUES</> query.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -225,7 +224,7 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
|
||||
|
||||
<para>
|
||||
This command is functionally similar to <xref
|
||||
linkend="sql-selectinto" endterm="sql-selectinto-title">, but it is
|
||||
linkend="sql-selectinto">, but it is
|
||||
preferred since it is less likely to be confused with other uses of
|
||||
the <command>SELECT INTO</> syntax. Furthermore, <command>CREATE
|
||||
TABLE AS</command> offers a superset of the functionality offered
|
||||
@ -313,7 +312,7 @@ CREATE TEMP TABLE films_recent WITH (OIDS) ON COMMIT DROP AS
|
||||
<para>
|
||||
<productname>PostgreSQL</> handles temporary tables in a way
|
||||
rather different from the standard; see
|
||||
<xref linkend="sql-createtable" endterm="sql-createtable-title">
|
||||
<xref linkend="sql-createtable">
|
||||
for details.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -340,11 +339,11 @@ CREATE TEMP TABLE films_recent WITH (OIDS) ON COMMIT DROP AS
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createtable" endterm="sql-createtable-title"></member>
|
||||
<member><xref linkend="sql-execute" endterm="sql-execute-title"></member>
|
||||
<member><xref linkend="sql-select" endterm="sql-select-title"></member>
|
||||
<member><xref linkend="sql-selectinto" endterm="sql-selectinto-title"></member>
|
||||
<member><xref linkend="sql-values" endterm="sql-values-title"></member>
|
||||
<member><xref linkend="sql-createtable"></member>
|
||||
<member><xref linkend="sql-execute"></member>
|
||||
<member><xref linkend="sql-select"></member>
|
||||
<member><xref linkend="sql-selectinto"></member>
|
||||
<member><xref linkend="sql-values"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tablespace.sgml,v 1.10 2009/09/19 10:23:27 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tablespace.sgml,v 1.11 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETABLESPACE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtablespace-title">CREATE TABLESPACE</refentrytitle>
|
||||
<refentrytitle>CREATE TABLESPACE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -135,11 +135,11 @@ CREATE TABLESPACE indexspace OWNER genevieve LOCATION '/data/indexes';
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createdatabase" endterm="sql-createdatabase-title"></member>
|
||||
<member><xref linkend="sql-createtable" endterm="sql-createtable-title"></member>
|
||||
<member><xref linkend="sql-createindex" endterm="sql-createindex-title"></member>
|
||||
<member><xref linkend="sql-droptablespace" endterm="sql-droptablespace-title"></member>
|
||||
<member><xref linkend="sql-altertablespace" endterm="sql-altertablespace-title"></member>
|
||||
<member><xref linkend="sql-createdatabase"></member>
|
||||
<member><xref linkend="sql-createtable"></member>
|
||||
<member><xref linkend="sql-createindex"></member>
|
||||
<member><xref linkend="sql-droptablespace"></member>
|
||||
<member><xref linkend="sql-altertablespace"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.52 2009/11/20 20:38:09 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_trigger.sgml,v 1.53 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETRIGGER">
|
||||
<refmeta>
|
||||
<refentrytitle id="SQL-CREATETRIGGER-TITLE">CREATE TRIGGER</refentrytitle>
|
||||
<refentrytitle>CREATE TRIGGER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -233,8 +233,7 @@ UPDATE OF <replaceable>column_name1</replaceable> [, <replaceable>column_name2</
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Use <xref linkend="sql-droptrigger"
|
||||
endterm="sql-droptrigger-title"> to remove a trigger.
|
||||
Use <xref linkend="sql-droptrigger"> to remove a trigger.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@ -406,9 +405,9 @@ CREATE TRIGGER log_update
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-createfunction" endterm="sql-createfunction-title"></member>
|
||||
<member><xref linkend="sql-altertrigger" endterm="sql-altertrigger-title"></member>
|
||||
<member><xref linkend="sql-droptrigger" endterm="sql-droptrigger-title"></member>
|
||||
<member><xref linkend="sql-createfunction"></member>
|
||||
<member><xref linkend="sql-altertrigger"></member>
|
||||
<member><xref linkend="sql-droptrigger"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tsconfig.sgml,v 1.3 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tsconfig.sgml,v 1.4 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETSCONFIG">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtsconfig-title">CREATE TEXT SEARCH CONFIGURATION</refentrytitle>
|
||||
<refentrytitle>CREATE TEXT SEARCH CONFIGURATION</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -119,8 +119,8 @@ CREATE TEXT SEARCH CONFIGURATION <replaceable class="parameter">name</replaceabl
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altertsconfig" endterm="sql-altertsconfig-title"></member>
|
||||
<member><xref linkend="sql-droptsconfig" endterm="sql-droptsconfig-title"></member>
|
||||
<member><xref linkend="sql-altertsconfig"></member>
|
||||
<member><xref linkend="sql-droptsconfig"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tsdictionary.sgml,v 1.3 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tsdictionary.sgml,v 1.4 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETSDICTIONARY">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtsdictionary-title">CREATE TEXT SEARCH DICTIONARY</refentrytitle>
|
||||
<refentrytitle>CREATE TEXT SEARCH DICTIONARY</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -134,8 +134,8 @@ CREATE TEXT SEARCH DICTIONARY my_russian (
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altertsdictionary" endterm="sql-altertsdictionary-title"></member>
|
||||
<member><xref linkend="sql-droptsdictionary" endterm="sql-droptsdictionary-title"></member>
|
||||
<member><xref linkend="sql-altertsdictionary"></member>
|
||||
<member><xref linkend="sql-droptsdictionary"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tsparser.sgml,v 1.2 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tsparser.sgml,v 1.3 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETSPARSER">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtsparser-title">CREATE TEXT SEARCH PARSER</refentrytitle>
|
||||
<refentrytitle>CREATE TEXT SEARCH PARSER</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -146,8 +146,8 @@ CREATE TEXT SEARCH PARSER <replaceable class="parameter">name</replaceable> (
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altertsparser" endterm="sql-altertsparser-title"></member>
|
||||
<member><xref linkend="sql-droptsparser" endterm="sql-droptsparser-title"></member>
|
||||
<member><xref linkend="sql-altertsparser"></member>
|
||||
<member><xref linkend="sql-droptsparser"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tstemplate.sgml,v 1.2 2008/11/14 10:22:46 petere Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/create_tstemplate.sgml,v 1.3 2010/04/03 07:23:00 petere Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
<refentry id="SQL-CREATETSTEMPLATE">
|
||||
<refmeta>
|
||||
<refentrytitle id="sql-createtstemplate-title">CREATE TEXT SEARCH TEMPLATE</refentrytitle>
|
||||
<refentrytitle>CREATE TEXT SEARCH TEMPLATE</refentrytitle>
|
||||
<manvolnum>7</manvolnum>
|
||||
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
||||
</refmeta>
|
||||
@ -119,8 +119,8 @@ CREATE TEXT SEARCH TEMPLATE <replaceable class="parameter">name</replaceable> (
|
||||
<title>See Also</title>
|
||||
|
||||
<simplelist type="inline">
|
||||
<member><xref linkend="sql-altertstemplate" endterm="sql-altertstemplate-title"></member>
|
||||
<member><xref linkend="sql-droptstemplate" endterm="sql-droptstemplate-title"></member>
|
||||
<member><xref linkend="sql-altertstemplate"></member>
|
||||
<member><xref linkend="sql-droptstemplate"></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user