Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
92934258
Commit
92934258
authored
Nov 28, 2007
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spell checker run
parent
96ee6ff5
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
98 additions
and
98 deletions
+98
-98
doc/src/sgml/backup.sgml
doc/src/sgml/backup.sgml
+3
-3
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+8
-8
doc/src/sgml/ddl.sgml
doc/src/sgml/ddl.sgml
+2
-2
doc/src/sgml/func.sgml
doc/src/sgml/func.sgml
+6
-6
doc/src/sgml/high-availability.sgml
doc/src/sgml/high-availability.sgml
+10
-10
doc/src/sgml/install-win32.sgml
doc/src/sgml/install-win32.sgml
+7
-7
doc/src/sgml/installation.sgml
doc/src/sgml/installation.sgml
+2
-2
doc/src/sgml/libpq.sgml
doc/src/sgml/libpq.sgml
+2
-2
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+3
-3
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+8
-8
doc/src/sgml/perform.sgml
doc/src/sgml/perform.sgml
+3
-3
doc/src/sgml/plpgsql.sgml
doc/src/sgml/plpgsql.sgml
+2
-2
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/alter_table.sgml
+2
-2
doc/src/sgml/ref/create_operator.sgml
doc/src/sgml/ref/create_operator.sgml
+3
-3
doc/src/sgml/ref/delete.sgml
doc/src/sgml/ref/delete.sgml
+2
-2
doc/src/sgml/ref/explain.sgml
doc/src/sgml/ref/explain.sgml
+2
-2
doc/src/sgml/ref/select.sgml
doc/src/sgml/ref/select.sgml
+2
-2
doc/src/sgml/ref/update.sgml
doc/src/sgml/ref/update.sgml
+2
-2
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+3
-3
doc/src/sgml/textsearch.sgml
doc/src/sgml/textsearch.sgml
+14
-14
doc/src/sgml/wal.sgml
doc/src/sgml/wal.sgml
+6
-6
doc/src/sgml/xoper.sgml
doc/src/sgml/xoper.sgml
+6
-6
No files found.
doc/src/sgml/backup.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.10
7 2007/10/16 19:44:18 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.10
8 2007/11/28 15:42:30 petere
Exp $ -->
<chapter id="backup">
<title>Backup and Restore</title>
...
...
@@ -1034,7 +1034,7 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
(The path name is relative to the working directory of the server,
i.e., the cluster's data directory.)
Any <literal>%r</> is replaced by the name of the file containing the
last valid restartpoint. That is the earliest file that must be kept
last valid restart
point. That is the earliest file that must be kept
to allow a restore to be restartable, so this information can be used
to truncate the archive to just the minimum required to support
restart of the current restore. <literal>%r</> would only be used in a
...
...
@@ -1479,7 +1479,7 @@ if (!triggered)
<para>
The size of the WAL archive can be minimized by using the <literal>%r</>
option of the <varname>restore_command</>. This option specifies the
last archive filename that needs to be kept to allow the recovery to
last archive file
name that needs to be kept to allow the recovery to
restart correctly. This can be used to truncate the archive once
files are no longer required, if the archive is writable from the
standby server.
...
...
doc/src/sgml/config.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.15
7 2007/11/28 05:01:24 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.15
8 2007/11/28 15:42:30 petere
Exp $ -->
<chapter Id="runtime-config">
<title>Server Configuration</title>
...
...
@@ -608,7 +608,7 @@ SET ENABLE_SEQSCAN TO OFF;
</indexterm>
<listitem>
<para>
Sets the realm to match Kerberos, GSSAPI and SSPI usernames against.
Sets the realm to match Kerberos, GSSAPI and SSPI user
names against.
See <xref linkend="kerberos-auth">, <xref linkend="gssapi-auth"> or
<xref linkend="sspi-auth"> for details. This parameter can only be
set at server start.
...
...
@@ -3166,12 +3166,11 @@ local0.* /var/log/postgresql
Including <literal>csvlog</> in the <varname>log_destination</> list
provides a convenient way to import log files into a database table.
This option emits log lines in comma-separated-value format,
with these columns: timestamp with milliseconds, username, database
name, session
id, host:port number, process id
, per-process line
number, command tag, session start time, virtual transaction
id
,
with these columns: timestamp with milliseconds, user
name, database
name, session
ID, host:port number, process ID
, per-process line
number, command tag, session start time, virtual transaction
ID
,
regular transaction id, error severity, SQL state code, error message.
Here is a sample table definition for storing CSV-format log output:
</para>
<programlisting>
CREATE TABLE postgres_log
...
...
@@ -3193,15 +3192,16 @@ CREATE TABLE postgres_log
PRIMARY KEY (session_id, process_line_num)
);
</programlisting>
</para>
<para>
To import a log file into this table, use the <command>COPY FROM</>
command:
</para>
<programlisting>
COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
</programlisting>
</para>
<para>
There are a few things you need to do to simplify importing CSV log
...
...
@@ -3221,7 +3221,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
<listitem>
<para>
Set <varname>log_rotation_size</varname> to 0 to disable
size-based log rotation, as it makes the log filename difficult
size-based log rotation, as it makes the log file
name difficult
to predict.
</para>
</listitem>
...
...
doc/src/sgml/ddl.sgml
View file @
92934258
<
!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.7
6 2007/06/20 23:11:38 tgl
Exp $ -->
<
!-- $PostgreSQL: pgsql/doc/src/sgml/ddl.sgml,v 1.7
7 2007/11/28 15:42:31 petere
Exp $ -->
<
chapter
id
=
"ddl"
>
<
title
>
Data
Definition
</
title
>
...
...
@@ -2793,7 +2793,7 @@ EXPLAIN SELECT count(*) FROM measurement WHERE logdate >= DATE '2006-01-01';
range tests for range partitioning, as illustrated in the preceding
examples. A good rule of thumb is that partitioning constraints should
contain only comparisons of the partitioning column(s) to constants
using
b
tree-indexable operators.
using
B-
tree-indexable operators.
</para>
</listitem>
...
...
doc/src/sgml/func.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.41
3 2007/11/28 05:13:41 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.41
4 2007/11/28 15:42:31 petere
Exp $ -->
<chapter
id=
"functions"
>
<title>
Functions and Operators
</title>
...
...
@@ -1313,7 +1313,7 @@
<entry>
<acronym>
ASCII
</acronym>
code of the first character of the
argument. For
<acronym>
UTF8
</acronym>
returns the Unicode code
point of the character. For other multi
-
byte encodings. the
point of the character. For other multibyte encodings. the
argument must be a strictly
<acronym>
ASCII
</acronym>
character.
</entry>
<entry><literal>
ascii('x')
</literal></entry>
...
...
@@ -1338,7 +1338,7 @@
<entry><type>
text
</type></entry>
<entry>
Character with the given code. For
<acronym>
UTF8
</acronym>
the
argument is treated as a Unicode code point. For other multi
-
byte
argument is treated as a Unicode code point. For other multibyte
encodings the argument must designate a strictly
<acronym>
ASCII
</acronym>
character.
</entry>
...
...
@@ -1359,7 +1359,7 @@
<parameter>
src_encoding
</parameter>
. The
<parameter>
string
</parameter>
must be valid in this encoding.
Conversions can be defined by
<command>
CREATE CONVERSION
</command>
.
Also there are some pre
-
defined conversions. See
<xref
Also there are some predefined conversions. See
<xref
linkend=
"conversion-names"
>
for available conversions.
</entry>
<entry><literal>
convert('text_in_utf8', 'UTF8', 'LATIN1')
</literal></entry>
...
...
@@ -6823,7 +6823,7 @@ CREATE TYPE rainbow AS ENUM ('red', 'orange', 'yellow', 'green', 'blue', 'purple
<para>
Notice that except for the two-argument form of
<function>
enum_range
</>
,
these functions disregard the specific value passed to them; they care
only about its declared data
type. Either NULL
or a specific value of
only about its declared data
type. Either null
or a specific value of
the type can be passed, with the same result. It is more common to
apply these functions to a table column or function argument than to
a hardwired type name as suggested by the examples.
...
...
@@ -8381,7 +8381,7 @@ cursor_to_xml(cursor refcursor, count int, nulls boolean, tableforest boolean, t
...
]]>
</screen>
If no table name is avaible, that is, when mapping a query or a
If no table name is avai
la
ble, that is, when mapping a query or a
cursor, the string
<literal>
table
</literal>
is used in the first
format,
<literal>
row
</literal>
in the second format.
</para>
...
...
doc/src/sgml/high-availability.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/high-availability.sgml,v 1.2
8 2007/11/28 10:10:14
petere Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/high-availability.sgml,v 1.2
9 2007/11/28 15:42:31
petere Exp $ -->
<chapter id="high-availability">
<title>High Availability, Load Balancing, and Replication</title>
...
...
@@ -66,7 +66,7 @@
<para>
Performance must be considered in any choice. There is usually a
tradeoff between functionality and
trade
-
off between functionality and
performance. For example, a full synchronous solution over a slow
network might cut performance by more than half, while an asynchronous
one might have a minimal performance impact.
...
...
@@ -202,13 +202,13 @@ protocol to make nodes agree on a serializable transactional order.
</varlistentry>
<varlistentry>
<term>Asynchronous Multi
-M
aster Replication</term>
<term>Asynchronous Multi
m
aster Replication</term>
<listitem>
<para>
For servers that are not regularly connected, like laptops or
remote servers, keeping data consistent among servers is a
challenge. Using asynchronous multi
-
master replication, each
challenge. Using asynchronous multimaster replication, each
server works independently, and periodically communicates with
the other servers to identify conflicting transactions. The
conflicts can be resolved by users or conflict resolution rules.
...
...
@@ -217,18 +217,18 @@ protocol to make nodes agree on a serializable transactional order.
</varlistentry>
<varlistentry>
<term>Synchronous Multi
-M
aster Replication</term>
<term>Synchronous Multi
m
aster Replication</term>
<listitem>
<para>
In synchronous multi
-
master replication, each server can accept
In synchronous multimaster replication, each server can accept
write requests, and modified data is transmitted from the
original server to every other server before each transaction
commits. Heavy write activity can cause excessive locking,
leading to poor performance. In fact, write performance is
often worse than that of a single server. Read requests can
be sent to any server. Some implementations use shared disk
to reduce the communication overhead. Synchronous multi
-
master
to reduce the communication overhead. Synchronous multimaster
replication is best for mostly read workloads, though its big
advantage is that any server can accept write requests —
there is no need to partition workloads between master and
...
...
@@ -279,8 +279,8 @@ protocol to make nodes agree on a serializable transactional order.
<entry>Warm Standby Using PITR</entry>
<entry>Master-Slave Replication</entry>
<entry>Statement-Based Replication Middleware</entry>
<entry>Asynchronous Multi
-M
aster Replication</entry>
<entry>Synchronous Multi
-M
aster Replication</entry>
<entry>Asynchronous Multi
m
aster Replication</entry>
<entry>Synchronous Multi
m
aster Replication</entry>
</row>
</thead>
...
...
@@ -401,7 +401,7 @@ protocol to make nodes agree on a serializable transactional order.
</varlistentry>
<varlistentry>
<term>Multi-Server Parallel Query Execution</term>
<term>Multi
ple
-Server Parallel Query Execution</term>
<listitem>
<para>
...
...
doc/src/sgml/install-win32.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.4
1 2007/08/03 10:47:10 mha
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.4
2 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="install-win32">
<title>Installation on <productname>Windows</productname></title>
...
...
@@ -82,7 +82,7 @@
<term><productname>ActiveState Perl</productname></term>
<listitem><para>
ActiveState Perl is required to run the build generation scripts. MinGW
or Cygwin
p
erl will not work. It must also be present in the PATH.
or Cygwin
P
erl will not work. It must also be present in the PATH.
Binaries can be downloaded from
<ulink url="http://www.activestate.com"></>.
</para></listitem>
...
...
@@ -209,7 +209,7 @@
</userinput>
</screen>
To change the default build configuration to debug, put the following
in the
buildenv.bat
file:
in the
<filename>buildenv.bat</filename>
file:
<screen>
<userinput>
set CONFIG=Debug
...
...
@@ -261,8 +261,8 @@
<para>
To run the regression tests, make sure you have completed the build of all
required parts first. Also, make sure that the DLLs required to load all
parts of the system (such as the
perl and p
ython DLLs for the procedural
languages) are present in the system
PATH
. If they are not, set it through
parts of the system (such as the
Perl and P
ython DLLs for the procedural
languages) are present in the system
path
. If they are not, set it through
the <filename>buildenv.bat</filename> file. To run the tests, run one of
the following commands from the <filename>src\tools\msvc</filename>
directory:
...
...
@@ -282,7 +282,7 @@
</screen>
To change the schedule used (default is the parallel), append it to the
commandline like:
command
line like:
<screen>
<userinput>
vcregress check serial
...
...
@@ -321,7 +321,7 @@
</varlistentry>
<varlistentry>
<term>DocBook DSSL 1.79</term>
<term>DocBook DSS
S
L 1.79</term>
<listitem><para>
Download from
<ulink url="http://sourceforge.net/project/downloading.php?groupname=docbook&filename=docbook-dsssl-1.79.zip"></>
...
...
doc/src/sgml/installation.sgml
View file @
92934258
<
!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.29
7 2007/11/05 17:43:20 momjian
Exp $ -->
<
!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.29
8 2007/11/28 15:42:31 petere
Exp $ -->
<
chapter
id
=
"installation"
>
<
title
><
![%standalone-include[<productname>PostgreSQL</>]]>
...
...
@@ -1308,7 +1308,7 @@ su - postgres
<
term
><
envar
>
TCLSH
</
envar
></
term
>
<
listitem
>
<
para
>
Full
path
to
the
Tcl
interpreter
.
This
wil
be
used
to
Full
path
to
the
Tcl
interpreter
.
This
wil
l
be
used
to
determine
the
dependencies
for
building
PL
/
Tcl
.
</
para
>
</
listitem
>
...
...
doc/src/sgml/libpq.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.24
6 2007/09/26 08:45:50 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.24
7 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="libpq">
<title><application>libpq</application> - C Library</title>
...
...
@@ -4976,7 +4976,7 @@ defaultNoticeProcessor(void *arg, const char *message)
used. (Therefore, put more-specific entries first when you are using
wildcards.) If an entry needs to contain <literal>:</literal> or
<literal>\</literal>, escape this character with <literal>\</literal>.
A host name of <literal>localhost</> matches both TCP (hostname
A host name of <literal>localhost</> matches both TCP (host
name
<literal>localhost</>) and Unix domain socket (<literal>pghost</> empty
or the default socket directory) connections coming from the local
machine.
...
...
doc/src/sgml/maintenance.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.8
4 2007/10/07 01:16:42 alvher
re Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.8
5 2007/11/28 15:42:31 pete
re Exp $ -->
<chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title>
...
...
@@ -115,7 +115,7 @@
<command>UPDATE</> or <command>DELETE</> of a row does not
immediately remove the old version of the row.
This approach is necessary to gain the benefits of multiversion
concurrency control (see <xref linkend="mvcc">): the row version
concurrency control (see <xref linkend="mvcc">): the row version
s
must not be deleted while it is still potentially visible to other
transactions. But eventually, an outdated or deleted row version is no
longer of interest to any transaction. The space it occupies must be
...
...
@@ -486,7 +486,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
<para>
Beginning in <productname>PostgreSQL</productname> 8.3, autovacuum has a
multi
-process architecture: t
here is a daemon process, called the
multi
process architecture: T
here is a daemon process, called the
<firstterm>autovacuum launcher</firstterm>, which is in charge of starting
an <firstterm>autovacuum worker</firstterm> process on each database every
<xref linkend="guc-autovacuum-naptime"> seconds. On each run, the worker
...
...
doc/src/sgml/monitoring.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.5
4 2007/09/25 20:03:37 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.5
5 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="monitoring">
<title>Monitoring Database Activity</title>
...
...
@@ -236,7 +236,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry>One row only, showing cluster-wide statistics from the
background writer: number of scheduled checkpoints, requested
checkpoints, buffers written by checkpoints and cleaning scans,
and the number of times the b
g
writer stopped a cleaning scan
and the number of times the b
ackground
writer stopped a cleaning scan
because it had written too many buffers. Also includes
statistics about the shared buffer pool, including buffers written
by backends (that is, not by the background writer) and total buffers
...
...
@@ -777,7 +777,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><literal><function>pg_stat_get_bgwriter_timed_checkpoints</function>()</literal></entry>
<entry><type>bigint</type></entry>
<entry>
The number of times the b
g
writer has started timed checkpoints
The number of times the b
ackground
writer has started timed checkpoints
(because the <varname>checkpoint_timeout</varname> time has expired)
</entry>
</row>
...
...
@@ -786,7 +786,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><literal><function>pg_stat_get_bgwriter_requested_checkpoints</function>()</literal></entry>
<entry><type>bigint</type></entry>
<entry>
The number of times the b
g
writer has started checkpoints based
The number of times the b
ackground
writer has started checkpoints based
on requests from backends because the <varname>checkpoint_segments</varname>
has been exceeded or because the <command>CHECKPOINT</command>
command has been issued
...
...
@@ -797,7 +797,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><literal><function>pg_stat_get_bgwriter_buf_written_checkpoints</function>()</literal></entry>
<entry><type>bigint</type></entry>
<entry>
The number of buffers written by the b
g
writer during checkpoints
The number of buffers written by the b
ackground
writer during checkpoints
</entry>
</row>
...
...
@@ -805,7 +805,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><literal><function>pg_stat_get_bgwriter_buf_written_clean</function>()</literal></entry>
<entry><type>bigint</type></entry>
<entry>
The number of buffers written by the b
g
writer for routine cleaning of
The number of buffers written by the b
ackground
writer for routine cleaning of
dirty pages
</entry>
</row>
...
...
@@ -814,7 +814,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<entry><literal><function>pg_stat_get_bgwriter_maxwritten_clean</function>()</literal></entry>
<entry><type>bigint</type></entry>
<entry>
The number of times the b
g
writer has stopped its cleaning scan because
The number of times the b
ackground
writer has stopped its cleaning scan because
it has written more buffers than specified in the
<varname>bgwriter_lru_maxpages</varname> parameter
</entry>
...
...
@@ -1180,7 +1180,7 @@ provider postgresql {
<para>
You should take care that the data types specified for the probe arguments
match the datatypes of the variables used in the <literal>PG_TRACE</>
match the data
types of the variables used in the <literal>PG_TRACE</>
macro. This is not checked at compile time. You can check that your newly
added trace point is available by recompiling, then running the new binary,
and as root, executing a DTrace command such as:
...
...
doc/src/sgml/perform.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.6
6 2007/10/22 21:34:33 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/perform.sgml,v 1.6
7 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="performance-tips">
<title>Performance Tips</title>
...
...
@@ -738,10 +738,10 @@ SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;
<xref linkend="guc-from-collapse-limit"> and <xref
linkend="guc-join-collapse-limit">
are similarly named because they do almost the same thing: one controls
when the planner will <quote>flatten out</> sub
select
s, and the
when the planner will <quote>flatten out</> sub
querie
s, and the
other controls when it will flatten out explicit joins. Typically
you would either set <varname>join_collapse_limit</> equal to
<varname>from_collapse_limit</> (so that explicit joins and sub
select
s
<varname>from_collapse_limit</> (so that explicit joins and sub
querie
s
act similarly) or set <varname>join_collapse_limit</> to 1 (if you want
to control join order with explicit joins). But you might set them
differently if you are trying to fine-tune the trade-off between planning
...
...
doc/src/sgml/plpgsql.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.11
7 2007/10/26 01:11:09 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.11
8 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="plpgsql">
<title><application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language</title>
...
...
@@ -3348,7 +3348,7 @@ SELECT * INTO myrec FROM dictionary WHERE word LIKE search_term;
where <literal>search_term</> is a <application>PL/pgSQL</application>
variable. The cached plan for this query will never use an index on
<structfield>word</>, since the planner cannot assume that the
<literal>LIKE</> pattern will be left-anchored at runtime. To use
<literal>LIKE</> pattern will be left-anchored at run
time. To use
an index the query must be planned with a specific constant
<literal>LIKE</> pattern provided. This is another situation where
<command>EXECUTE</command> can be used to force a new plan to be
...
...
doc/src/sgml/ref/alter_table.sgml
View file @
92934258
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.9
7 2007/05/17 23:36:04 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.9
8 2007/11/28 15:42:31 petere
Exp $
PostgreSQL documentation
-->
...
...
@@ -214,7 +214,7 @@ where <replaceable class="PARAMETER">action</replaceable> is one of:
of course the integrity of the constraint cannot be guaranteed if the
triggers are not executed.
The trigger firing mechanism is also affected by the configuration
variable <xref linkend="guc-session-replication-role">. Simply
ENABLE
d
variable <xref linkend="guc-session-replication-role">. Simply
enable
d
triggers will fire when the replication role is <quote>origin</>
(the default) or <quote>local</>. Triggers configured <literal>ENABLE REPLICA</literal>
will only fire if the session is in <quote>replica</> mode and triggers
...
...
doc/src/sgml/ref/create_operator.sgml
View file @
92934258
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.4
8 2007/02/01 00:28:18 momjian
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_operator.sgml,v 1.4
9 2007/11/28 15:42:31 petere
Exp $
PostgreSQL documentation
-->
...
...
@@ -222,9 +222,9 @@ COMMUTATOR = OPERATOR(myschema.===) ,
<para>
The obsolete options <literal>SORT1</>, <literal>SORT2</>,
<literal>LTCMP</>, and <literal>GTCMP</> were formerly used to
specify the names of sort operators associated with a mergejoinable
specify the names of sort operators associated with a merge
-
joinable
operator. This is no longer necessary, since information about
associated operators is found by looking at
b
tree operator families
associated operators is found by looking at
B-
tree operator families
instead. If one of these options is given, it is ignored except
for implicitly setting <literal>MERGES</> true.
</para>
...
...
doc/src/sgml/ref/delete.sgml
View file @
92934258
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/delete.sgml,v 1.3
1 2007/06/11 01:16:21 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/delete.sgml,v 1.3
2 2007/11/28 15:42:31 petere
Exp $
PostgreSQL documentation
-->
...
...
@@ -150,7 +150,7 @@ DELETE FROM [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ]
from this cursor. The cursor must be a simple (non-join, non-aggregate)
query on the <command>DELETE</>'s target table.
Note that <literal>WHERE CURRENT OF</> cannot be
specified together with a
b
oolean condition.
specified together with a
B
oolean condition.
</para>
</listitem>
</varlistentry>
...
...
doc/src/sgml/ref/explain.sgml
View file @
92934258
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/explain.sgml,v 1.4
0 2007/04/12 22:39:21 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/explain.sgml,v 1.4
1 2007/11/28 15:42:31 petere
Exp $
PostgreSQL documentation
-->
...
...
@@ -160,7 +160,7 @@ ROLLBACK;
</para>
<para>
In order to measure the runtime cost of each node in the execution
In order to measure the run
-
time cost of each node in the execution
plan, the current implementation of <command>EXPLAIN
ANALYZE</command> can add considerable profiling overhead to query
execution. As a result, running <command>EXPLAIN ANALYZE</command>
...
...
doc/src/sgml/ref/select.sgml
View file @
92934258
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.10
1 2007/06/08 20:26:18 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.10
2 2007/11/28 15:42:31 petere
Exp $
PostgreSQL documentation
-->
...
...
@@ -698,7 +698,7 @@ SELECT name FROM distributors ORDER BY code;
assumed by default. Alternatively, a specific ordering operator
name can be specified in the <literal>USING</> clause.
An ordering operator must be a less-than or greater-than
member of some
b
tree operator family.
member of some
B-
tree operator family.
<literal>ASC</> is usually equivalent to <literal>USING <</> and
<literal>DESC</> is usually equivalent to <literal>USING ></>.
(But the creator of a user-defined data type can define exactly what the
...
...
doc/src/sgml/ref/update.sgml
View file @
92934258
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/update.sgml,v 1.4
4 2007/06/11 01:16:22 tgl
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/update.sgml,v 1.4
5 2007/11/28 15:42:31 petere
Exp $
PostgreSQL documentation
-->
...
...
@@ -169,7 +169,7 @@ UPDATE [ ONLY ] <replaceable class="PARAMETER">table</replaceable> [ [ AS ] <rep
from this cursor. The cursor must be a simple (non-join, non-aggregate)
query on the <command>UPDATE</>'s target table.
Note that <literal>WHERE CURRENT OF</> cannot be
specified together with a
b
oolean condition.
specified together with a
B
oolean condition.
</para>
</listitem>
</varlistentry>
...
...
doc/src/sgml/runtime.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.38
5 2007/11/08 15:21:03 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/runtime.sgml,v 1.38
6 2007/11/28 15:42:31 petere
Exp $ -->
<chapter Id="runtime">
<title>Operating System Environment</title>
...
...
@@ -180,9 +180,9 @@ postgres$ <userinput>initdb -D /usr/local/pgsql/data</userinput>
<acronym>NFS</> implementations have non-standard semantics, this can
cause reliability problems (see <ulink
url="http://www.time-travellers.org/shane/papers/NFS_considered_harmful.html"></ulink>).
Specifically, delayed (asynchonous) writes to the <acronym>NFS</>
Specifically, delayed (asynch
r
onous) writes to the <acronym>NFS</>
server can cause reliability problems; if possible, mount
<acronym>NFS</> file systems synchonously (without caching) to avoid
<acronym>NFS</> file systems synch
r
onously (without caching) to avoid
this. (Storage Area Networks (<acronym>SAN</>) use a low-level
communication protocol rather than <acronym>NFS</>.)
</para>
...
...
doc/src/sgml/textsearch.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.3
8 2007/11/20 15:58:52 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/textsearch.sgml,v 1.3
9 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="textsearch">
<title id="textsearch-title">Full Text Search</title>
...
...
@@ -32,7 +32,7 @@
Textual search operators have existed in databases for years.
<productname>PostgreSQL</productname> has
<literal>~</literal>, <literal>~*</literal>, <literal>LIKE</literal>, and
<literal>ILIKE</literal> operators for textual datatypes, but they lack
<literal>ILIKE</literal> operators for textual data
types, but they lack
many essential properties required by modern information systems:
</para>
...
...
@@ -132,7 +132,7 @@
<listitem>
<para>
Map synonyms to a single word using <application>
i
spell</>.
Map synonyms to a single word using <application>
I
spell</>.
</para>
</listitem>
...
...
@@ -145,7 +145,7 @@
<listitem>
<para>
Map different variations of a word to a canonical form using
an <application>
i
spell</> dictionary.
an <application>
I
spell</> dictionary.
</para>
</listitem>
...
...
@@ -725,7 +725,7 @@ UPDATE tt SET ti =
<para>
<function>to_tsquery</function> creates a <type>tsquery</> value from
<replaceable>querytext</replaceable>, which must consist of single tokens
separated by the
b
oolean operators <literal>&</literal> (AND),
separated by the
B
oolean operators <literal>&</literal> (AND),
<literal>|</literal> (OR) and <literal>!</literal> (NOT). These operators
can be grouped using parentheses. In other words, the input to
<function>to_tsquery</function> must already follow the general rules for
...
...
@@ -783,7 +783,7 @@ SELECT to_tsquery('''supernovae stars'' & !crab');
<function>plainto_tsquery</> transforms unformatted text
<replaceable>querytext</replaceable> to <type>tsquery</type>.
The text is parsed and normalized much as for <function>to_tsvector</>,
then the <literal>&</literal> (AND)
b
oolean operator is inserted
then the <literal>&</literal> (AND)
B
oolean operator is inserted
between surviving words.
</para>
...
...
@@ -798,7 +798,7 @@ SELECT to_tsquery('''supernovae stars'' & !crab');
</programlisting>
Note that <function>plainto_tsquery</> cannot
recognize either
b
oolean operators or weight labels in its input:
recognize either
B
oolean operators or weight labels in its input:
<programlisting>
SELECT plainto_tsquery('english', 'The Fat & Rats:C');
...
...
@@ -1085,7 +1085,7 @@ ORDER BY rank DESC LIMIT 10;
</listitem>
<listitem>
<para>
<literal>HighlightAll</literal>:
b
oolean flag; if
<literal>HighlightAll</literal>:
B
oolean flag; if
<literal>true</literal> the whole document will be highlighted.
</para>
</listitem>
...
...
@@ -1131,7 +1131,7 @@ query.',
<type>tsvector</type> summary, so it can be slow and should be used with
care. A typical mistake is to call <function>ts_headline</function> for
<emphasis>every</emphasis> matching document when only ten documents are
to be shown. <acronym>SQL</acronym> sub
select
s can help; here is an
to be shown. <acronym>SQL</acronym> sub
querie
s can help; here is an
example:
<programlisting>
...
...
@@ -1945,7 +1945,7 @@ SELECT alias, description, token FROM ts_debug('http://example.com/stuff/index.h
<listitem>
<para>
Linguistic -
i
spell dictionaries try to reduce input words to a
Linguistic -
I
spell dictionaries try to reduce input words to a
normalized form; stemmer dictionaries remove word endings
</para>
</listitem>
...
...
@@ -2395,7 +2395,7 @@ crab nebulae : crab
</programlisting>
Below we create a dictionary and bind some token types to
an astronomical thesaurus and
e
nglish stemmer:
an astronomical thesaurus and
E
nglish stemmer:
<programlisting>
CREATE TEXT SEARCH DICTIONARY thesaurus_astro (
...
...
@@ -2610,7 +2610,7 @@ CREATE TEXT SEARCH DICTIONARY english_stem (
Several predefined text search configurations are available, and
you can create custom configurations easily. To facilitate management
of text search objects, a set of <acronym>SQL</acronym> commands
is available, and there are several
psql
commands that display information
is available, and there are several
<application>psql</application>
commands that display information
about text search objects (<xref linkend="textsearch-psql">).
</para>
...
...
@@ -2644,7 +2644,7 @@ CREATE TEXT SEARCH DICTIONARY pg_dict (
);
</programlisting>
Next we register the <productname>
i
spell</> dictionary
Next we register the <productname>
I
spell</> dictionary
<literal>english_ispell</literal>, which has its own configuration files:
<programlisting>
...
...
@@ -2834,7 +2834,7 @@ SELECT * FROM ts_debug('english','a fat cat sat on a mat - it ate a fat rats');
<para>
For a more extensive demonstration, we
first create a <literal>public.english</literal> configuration and
i
spell dictionary for the English language:
I
spell dictionary for the English language:
</para>
<programlisting>
...
...
doc/src/sgml/wal.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.4
5 2007/08/01 22:45:07 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/wal.sgml,v 1.4
6 2007/11/28 15:42:31 petere
Exp $ -->
<chapter id="wal">
<title>Reliability and the Write-Ahead Log</title>
...
...
@@ -162,7 +162,7 @@
<firstterm>Asynchronous commit</> is an option that allows transactions
to complete more quickly, at the cost that the most recent transactions may
be lost if the database should crash. In many applications this is an
acceptable tradeoff.
acceptable trade
-
off.
</para>
<para>
...
...
@@ -210,7 +210,7 @@
<para>
The user can select the commit mode of each transaction, so that
it is possible to have both synchronous and asynchronous commit
transactions running concurrently. This allows flexible tradeoffs
transactions running concurrently. This allows flexible trade
-
offs
between performance and certainty of transaction durability.
The commit mode is controlled by the user-settable parameter
<xref linkend="guc-synchronous-commit">, which can be changed in any of
...
...
@@ -223,7 +223,7 @@
Certain utility commands, for instance <command>DROP TABLE</>, are
forced to commit synchronously regardless of the setting of
<varname>synchronous_commit</varname>. This is to ensure consistency
between the server's filesystem and the logical state of the database.
between the server's file
system and the logical state of the database.
The commands supporting two-phase commit, such as <command>PREPARE
TRANSACTION</>, are also always synchronous.
</para>
...
...
@@ -234,11 +234,11 @@
<acronym>WAL</acronym> records,
then changes made during that transaction <emphasis>will</> be lost.
The duration of the
risk window is limited because a background process (the <quote>
wal
risk window is limited because a background process (the <quote>
WAL
writer</>) flushes unwritten <acronym>WAL</acronym> records to disk
every <xref linkend="guc-wal-writer-delay"> milliseconds.
The actual maximum duration of the risk window is three times
<varname>wal_writer_delay</varname> because the
wal
writer is
<varname>wal_writer_delay</varname> because the
WAL
writer is
designed to favor writing whole pages at a time during busy periods.
</para>
...
...
doc/src/sgml/xoper.sgml
View file @
92934258
<!-- $PostgreSQL: pgsql/doc/src/sgml/xoper.sgml,v 1.4
2 2007/02/06 04:38:31 tgl
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/xoper.sgml,v 1.4
3 2007/11/28 15:42:31 petere
Exp $ -->
<sect1 id="xoper">
<title>User-Defined Operators</title>
...
...
@@ -340,7 +340,7 @@ table1.column1 OP table2.column2
some form of equality. In most cases it is only practical to support
hashing for operators that take the same data type on both sides.
However, sometimes it is possible to design compatible hash functions
for two or more datatypes; that is, functions that will generate the
for two or more data
types; that is, functions that will generate the
same hash codes for <quote>equal</> values, even though the values
have different representations. For example, it's fairly simple
to arrange this property when hashing integers of different widths.
...
...
@@ -378,8 +378,8 @@ table1.column1 OP table2.column2
if they are different) that appears in the same operator family.
If this is not the case, planner errors might occur when the operator
is used. Also, it is a good idea (but not strictly required) for
a hash operator family that supports multiple datatypes to provide
equality operators for every combination of the datatypes; this
a hash operator family that supports multiple data
types to provide
equality operators for every combination of the data
types; this
allows better optimization.
</para>
...
...
@@ -450,8 +450,8 @@ table1.column1 OP table2.column2
if they are different) that appears in the same operator family.
If this is not the case, planner errors might occur when the operator
is used. Also, it is a good idea (but not strictly required) for
a btree operator family that supports multiple datatypes to provide
equality operators for every combination of the datatypes; this
a btree operator family that supports multiple data
types to provide
equality operators for every combination of the data
types; this
allows better optimization.
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment