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
7737d01e
Commit
7737d01e
authored
Dec 28, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More minor updates and copy-editing.
parent
31cc047d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
78 deletions
+113
-78
doc/src/sgml/backup.sgml
doc/src/sgml/backup.sgml
+73
-55
doc/src/sgml/diskusage.sgml
doc/src/sgml/diskusage.sgml
+12
-2
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+15
-11
doc/src/sgml/regress.sgml
doc/src/sgml/regress.sgml
+13
-10
No files found.
doc/src/sgml/backup.sgml
View file @
7737d01e
This diff is collapsed.
Click to expand it.
doc/src/sgml/diskusage.sgml
View file @
7737d01e
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/diskusage.sgml,v 1.1
2 2004/12/01 19:00:27
tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/diskusage.sgml,v 1.1
3 2004/12/28 19:08:58
tgl Exp $
-->
-->
<chapter id="diskusage">
<chapter id="diskusage">
...
@@ -24,7 +24,10 @@ $PostgreSQL: pgsql/doc/src/sgml/diskusage.sgml,v 1.12 2004/12/01 19:00:27 tgl Ex
...
@@ -24,7 +24,10 @@ $PostgreSQL: pgsql/doc/src/sgml/diskusage.sgml,v 1.12 2004/12/01 19:00:27 tgl Ex
which is used to store values too wide to fit comfortably in the main
which is used to store values too wide to fit comfortably in the main
table. There will be one index on the
table. There will be one index on the
<acronym>TOAST</> table, if present. There may also be indexes associated
<acronym>TOAST</> table, if present. There may also be indexes associated
with the base table.
with the base table. Each table and index is stored in a separate disk
file — possibly more than one file, if the file would exceed one
gigabyte. Naming conventions for these files are described in <xref
linkend="file-layout">.
</para>
</para>
<para>
<para>
...
@@ -135,6 +138,13 @@ SELECT relname, relpages FROM pg_class ORDER BY relpages DESC;
...
@@ -135,6 +138,13 @@ SELECT relname, relpages FROM pg_class ORDER BY relpages DESC;
not wait until the disk is completely full to take action.
not wait until the disk is completely full to take action.
</para>
</para>
</tip>
</tip>
<para>
If your system supports per-user disk quotas, then the database
will naturally be subject to whatever quota is placed on the user
the server runs as. Exceeding the quota will have the same bad
effects as running out of space entirely.
</para>
</sect1>
</sect1>
</chapter>
</chapter>
...
...
doc/src/sgml/monitoring.sgml
View file @
7737d01e
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.2
6 2004/03/26 03:18:28 neilc
Exp $
$PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.2
7 2004/12/28 19:08:58 tgl
Exp $
-->
-->
<chapter id="monitoring">
<chapter id="monitoring">
...
@@ -26,7 +26,8 @@ $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.26 2004/03/26 03:18:28 neilc
...
@@ -26,7 +26,8 @@ $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.26 2004/03/26 03:18:28 neilc
analyzing performance. Most of this chapter is devoted to describing
analyzing performance. Most of this chapter is devoted to describing
<productname>PostgreSQL</productname>'s statistics collector,
<productname>PostgreSQL</productname>'s statistics collector,
but one should not neglect regular Unix monitoring programs such as
but one should not neglect regular Unix monitoring programs such as
<command>ps</> and <command>top</>. Also, once one has identified a
<command>ps</>, <command>top</>, <command>iostat</>, and <command>vmstat</>.
Also, once one has identified a
poorly-performing query, further investigation may be needed using
poorly-performing query, further investigation may be needed using
<productname>PostgreSQL</productname>'s <xref linkend="sql-explain"
<productname>PostgreSQL</productname>'s <xref linkend="sql-explain"
endterm="sql-explain-title"> command.
endterm="sql-explain-title"> command.
...
@@ -172,25 +173,28 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
...
@@ -172,25 +173,28 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
<title>Viewing Collected Statistics</Title>
<title>Viewing Collected Statistics</Title>
<para>
<para>
Several predefined views
are available to show the results o
f
Several predefined views
, listed in <xre
f
statistics collection, listed in <xref
linkend="monitoring-stats-views-table">, are available to show the results
linkend="monitoring-stats-views-table">
. Alternatively, one can
of statistics collection
. Alternatively, one can
build custom views using the underlying statistics functions.
build custom views using the underlying statistics functions.
</para>
</para>
<para>
<para>
When using the statistics to monitor current activity, it is important
When using the statistics to monitor current activity, it is important
to realize that the information does not update instantaneously.
to realize that the information does not update instantaneously.
Each individual server process transmits new
access counts to the collector
Each individual server process transmits new
block and row access counts to
just before waiting for another client command; so a query
still in
the collector just before going idle; so a query or transaction
still in
progress does not affect the displayed totals. Also, the collector itself
progress does not affect the displayed totals. Also, the collector itself
emits new totals at most once per <varname>pgstat_stat_interval</varname> milliseconds
emits a new report at most once per <varname>pgstat_stat_interval</varname>
(500 by default). So the displayed totals lag behind actual activity.
milliseconds (500 by default). So the displayed information lags behind
actual activity. Current-query information is reported to the collector
immediately, but is still subject to the
<varname>pgstat_stat_interval</varname> delay before it becomes visible.
</para>
</para>
<para>
<para>
Another important point is that when a server process is asked to display
Another important point is that when a server process is asked to display
any of these statistics, it first fetches the most recent
totals
emitted by
any of these statistics, it first fetches the most recent
report
emitted by
the collector process and then continues to use this snapshot for all
the collector process and then continues to use this snapshot for all
statistical views and functions until the end of its current transaction.
statistical views and functions until the end of its current transaction.
So the statistics will appear not to change as long as you continue the
So the statistics will appear not to change as long as you continue the
...
@@ -614,7 +618,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
...
@@ -614,7 +618,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
database administrator to view information about the outstanding
database administrator to view information about the outstanding
locks in the lock manager. For example, this capability can be used
locks in the lock manager. For example, this capability can be used
to:
to:
<itemizedlist>
<itemizedlist>
<listitem>
<listitem>
<para>
<para>
...
...
doc/src/sgml/regress.sgml
View file @
7737d01e
<!-- $PostgreSQL: pgsql/doc/src/sgml/regress.sgml,v 1.4
4 2004/12/03 17:46:19
tgl Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/regress.sgml,v 1.4
5 2004/12/28 19:08:58
tgl Exp $ -->
<chapter id="regress">
<chapter id="regress">
<title id="regress-title">Regression Tests</title>
<title id="regress-title">Regression Tests</title>
...
@@ -15,16 +15,14 @@
...
@@ -15,16 +15,14 @@
The regression tests are a comprehensive set of tests for the SQL
The regression tests are a comprehensive set of tests for the SQL
implementation in <productname>PostgreSQL</productname>. They test
implementation in <productname>PostgreSQL</productname>. They test
standard SQL operations as well as the extended capabilities of
standard SQL operations as well as the extended capabilities of
<productname>PostgreSQL</productname>. From
<productname>PostgreSQL</productname>.
<productname>PostgreSQL</productname> 6.1 onward, the regression
tests are current for every official release.
</para>
</para>
<sect1 id="regress-run">
<sect1 id="regress-run">
<title>Running the Tests</title>
<title>Running the Tests</title>
<para>
<para>
The regression test can be run against an already installed and
The regression test
s
can be run against an already installed and
running server, or using a temporary installation within the build
running server, or using a temporary installation within the build
tree. Furthermore, there is a <quote>parallel</quote> and a
tree. Furthermore, there is a <quote>parallel</quote> and a
<quote>sequential</quote> mode for running the tests. The
<quote>sequential</quote> mode for running the tests. The
...
@@ -51,12 +49,13 @@ gmake check
...
@@ -51,12 +49,13 @@ gmake check
<screen>
<screen>
<computeroutput>
<computeroutput>
======================
======================
All 9
3
tests passed.
All 9
6
tests passed.
======================
======================
</computeroutput>
</computeroutput>
</screen>
</screen>
or otherwise a note about which tests failed. See <xref
or otherwise a note about which tests failed. See <xref
linkend="regress-evaluation"> below for more.
linkend="regress-evaluation"> below before assuming that a
<quote>failure</> represents a serious problem.
</para>
</para>
<para>
<para>
...
@@ -130,10 +129,14 @@ gmake SHELL=/bin/ksh check
...
@@ -130,10 +129,14 @@ gmake SHELL=/bin/ksh check
server, <![%standalone-ignore;[as explained in <xref linkend="runtime">, ]]> then type
server, <![%standalone-ignore;[as explained in <xref linkend="runtime">, ]]> then type
<screen>
<screen>
gmake installcheck
gmake installcheck
</screen>
or for a parallel test
<screen>
gmake installcheck-parallel
</screen>
</screen>
The tests will expect to contact the server at the local host and the
The tests will expect to contact the server at the local host and the
default port number, unless directed otherwise by <envar>PGHOST</envar> and
<envar>PGPORT</envar>
default port number, unless directed otherwise by <envar>PGHOST</envar> and
environment variables.
<envar>PGPORT</envar>
environment variables.
</para>
</para>
</sect1>
</sect1>
...
@@ -323,7 +326,7 @@ exclusion of those that don't.
...
@@ -323,7 +326,7 @@ exclusion of those that don't.
diff results/random.out expected/random.out
diff results/random.out expected/random.out
</programlisting>
</programlisting>
should produce only one or a few lines of differences. You need
should produce only one or a few lines of differences. You need
not worry unless the random test
repeatedly fails
.
not worry unless the random test
fails repeatedly
.
</para>
</para>
</sect2>
</sect2>
</sect1>
</sect1>
...
...
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