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
ba9f9bf1
Commit
ba9f9bf1
authored
Aug 29, 2006
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert change to turn autovacuum on by default.
parent
f443258d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
29 deletions
+26
-29
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+7
-8
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+4
-6
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+8
-8
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+7
-7
No files found.
doc/src/sgml/config.sgml
View file @
ba9f9bf1
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.7
7 2006/08/29 02:11:29 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.7
8 2006/08/29 11:37:47 petere
Exp $ -->
<chapter Id="runtime-config">
<chapter Id="runtime-config">
<title>Server Configuration</title>
<title>Server Configuration</title>
...
@@ -383,7 +383,7 @@ SET ENABLE_SEQSCAN TO OFF;
...
@@ -383,7 +383,7 @@ SET ENABLE_SEQSCAN TO OFF;
</para>
</para>
<para>
<para>
The default value is
3
. The value must be less than the value of
The default value is
2
. The value must be less than the value of
<varname>max_connections</varname>. This parameter can only be
<varname>max_connections</varname>. This parameter can only be
set at server start.
set at server start.
</para>
</para>
...
@@ -2990,8 +2990,7 @@ SELECT * FROM parent WHERE key = 2400;
...
@@ -2990,8 +2990,7 @@ SELECT * FROM parent WHERE key = 2400;
<listitem>
<listitem>
<para>
<para>
Enables the collection of row-level statistics on database
Enables the collection of row-level statistics on database
activity. This parameter is on by default, because the autovacuum
activity. This parameter is off by default.
daemon needs the collected information.
Only superusers can change this setting.
Only superusers can change this setting.
</para>
</para>
</listitem>
</listitem>
...
@@ -3114,7 +3113,7 @@ SELECT * FROM parent WHERE key = 2400;
...
@@ -3114,7 +3113,7 @@ SELECT * FROM parent WHERE key = 2400;
<para>
<para>
Specifies the minimum number of updated or deleted tuples needed
Specifies the minimum number of updated or deleted tuples needed
to trigger a <command>VACUUM</> in any one table.
to trigger a <command>VACUUM</> in any one table.
The default is
5
00.
The default is
10
00.
This parameter can only be set in the <filename>postgresql.conf</>
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
file or on the server command line.
This setting can be overridden for individual tables by entries in
This setting can be overridden for individual tables by entries in
...
@@ -3132,7 +3131,7 @@ SELECT * FROM parent WHERE key = 2400;
...
@@ -3132,7 +3131,7 @@ SELECT * FROM parent WHERE key = 2400;
<para>
<para>
Specifies the minimum number of inserted, updated or deleted tuples
Specifies the minimum number of inserted, updated or deleted tuples
needed to trigger an <command>ANALYZE</> in any one table.
needed to trigger an <command>ANALYZE</> in any one table.
The default is
25
0.
The default is
50
0.
This parameter can only be set in the <filename>postgresql.conf</>
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
file or on the server command line.
This setting can be overridden for individual tables by entries in
This setting can be overridden for individual tables by entries in
...
@@ -3151,7 +3150,7 @@ SELECT * FROM parent WHERE key = 2400;
...
@@ -3151,7 +3150,7 @@ SELECT * FROM parent WHERE key = 2400;
Specifies a fraction of the table size to add to
Specifies a fraction of the table size to add to
<varname>autovacuum_vacuum_threshold</varname>
<varname>autovacuum_vacuum_threshold</varname>
when deciding whether to trigger a <command>VACUUM</>.
when deciding whether to trigger a <command>VACUUM</>.
The default is 0.
2
.
The default is 0.
4
.
This parameter can only be set in the <filename>postgresql.conf</>
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
file or on the server command line.
This setting can be overridden for individual tables by entries in
This setting can be overridden for individual tables by entries in
...
@@ -3170,7 +3169,7 @@ SELECT * FROM parent WHERE key = 2400;
...
@@ -3170,7 +3169,7 @@ SELECT * FROM parent WHERE key = 2400;
Specifies a fraction of the table size to add to
Specifies a fraction of the table size to add to
<varname>autovacuum_analyze_threshold</varname>
<varname>autovacuum_analyze_threshold</varname>
when deciding whether to trigger an <command>ANALYZE</>.
when deciding whether to trigger an <command>ANALYZE</>.
The default is 0.
1
.
The default is 0.
2
.
This parameter can only be set in the <filename>postgresql.conf</>
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
file or on the server command line.
This setting can be overridden for individual tables by entries in
This setting can be overridden for individual tables by entries in
...
...
doc/src/sgml/maintenance.sgml
View file @
ba9f9bf1
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.6
0 2006/08/28 13:37:18
petere Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.6
1 2006/08/29 11:37:47
petere Exp $ -->
<chapter id="maintenance">
<chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title>
<title>Routine Database Maintenance Tasks</title>
...
@@ -447,14 +447,14 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
...
@@ -447,14 +447,14 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
</sect2>
</sect2>
<sect2 id="autovacuum">
<sect2 id="autovacuum">
<title id="autovacuum-title">The autovacuum daemon</title>
<title id="autovacuum-title">The auto
-
vacuum daemon</title>
<indexterm>
<indexterm>
<primary>autovacuum</primary>
<primary>autovacuum</primary>
<secondary>general information</secondary>
<secondary>general information</secondary>
</indexterm>
</indexterm>
<para>
<para>
T
here is a
Beginning in <productname>PostgreSQL </productname> 8.1, t
here is a
separate optional server process called the <firstterm>autovacuum
separate optional server process called the <firstterm>autovacuum
daemon</firstterm>, whose purpose is to automate the execution of
daemon</firstterm>, whose purpose is to automate the execution of
<command>VACUUM</command> and <command>ANALYZE </command> commands.
<command>VACUUM</command> and <command>ANALYZE </command> commands.
...
@@ -465,9 +465,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
...
@@ -465,9 +465,7 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
linkend="guc-stats-start-collector"> and <xref
linkend="guc-stats-start-collector"> and <xref
linkend="guc-stats-row-level"> are set to <literal>true</literal>. Also,
linkend="guc-stats-row-level"> are set to <literal>true</literal>. Also,
it's important to allow a slot for the autovacuum process when choosing
it's important to allow a slot for the autovacuum process when choosing
the value of <xref linkend="guc-superuser-reserved-connections">. In
the value of <xref linkend="guc-superuser-reserved-connections">.
the default configuration, autovacuuming is enabled and the related
configuration parameters are appropriately set.
</para>
</para>
<para>
<para>
...
...
src/backend/utils/misc/guc.c
View file @
ba9f9bf1
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.34
4 2006/08/28 13:37:18
petere Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.34
5 2006/08/29 11:37:47
petere Exp $
*
*
*--------------------------------------------------------------------
*--------------------------------------------------------------------
*/
*/
...
@@ -707,7 +707,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -707,7 +707,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
NULL
},
},
&
pgstat_collect_tuplelevel
,
&
pgstat_collect_tuplelevel
,
tru
e
,
NULL
,
NULL
fals
e
,
NULL
,
NULL
},
},
{
{
{
"stats_block_level"
,
PGC_SUSET
,
STATS_COLLECTOR
,
{
"stats_block_level"
,
PGC_SUSET
,
STATS_COLLECTOR
,
...
@@ -744,7 +744,7 @@ static struct config_bool ConfigureNamesBool[] =
...
@@ -744,7 +744,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
NULL
},
},
&
autovacuum_start_daemon
,
&
autovacuum_start_daemon
,
tru
e
,
NULL
,
NULL
fals
e
,
NULL
,
NULL
},
},
{
{
...
@@ -1138,7 +1138,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -1138,7 +1138,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
NULL
},
},
&
ReservedBackends
,
&
ReservedBackends
,
3
,
0
,
INT_MAX
/
4
,
NULL
,
NULL
2
,
0
,
INT_MAX
/
4
,
NULL
,
NULL
},
},
{
{
...
@@ -1563,7 +1563,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -1563,7 +1563,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
NULL
},
},
&
autovacuum_vac_thresh
,
&
autovacuum_vac_thresh
,
5
00
,
0
,
INT_MAX
,
NULL
,
NULL
10
00
,
0
,
INT_MAX
,
NULL
,
NULL
},
},
{
{
{
"autovacuum_analyze_threshold"
,
PGC_SIGHUP
,
AUTOVACUUM
,
{
"autovacuum_analyze_threshold"
,
PGC_SIGHUP
,
AUTOVACUUM
,
...
@@ -1571,7 +1571,7 @@ static struct config_int ConfigureNamesInt[] =
...
@@ -1571,7 +1571,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
NULL
},
},
&
autovacuum_anl_thresh
,
&
autovacuum_anl_thresh
,
25
0
,
0
,
INT_MAX
,
NULL
,
NULL
50
0
,
0
,
INT_MAX
,
NULL
,
NULL
},
},
{
{
...
@@ -1726,7 +1726,7 @@ static struct config_real ConfigureNamesReal[] =
...
@@ -1726,7 +1726,7 @@ static struct config_real ConfigureNamesReal[] =
NULL
NULL
},
},
&
autovacuum_vac_scale
,
&
autovacuum_vac_scale
,
0
.
2
,
0
.
0
,
100
.
0
,
NULL
,
NULL
0
.
4
,
0
.
0
,
100
.
0
,
NULL
,
NULL
},
},
{
{
{
"autovacuum_analyze_scale_factor"
,
PGC_SIGHUP
,
AUTOVACUUM
,
{
"autovacuum_analyze_scale_factor"
,
PGC_SIGHUP
,
AUTOVACUUM
,
...
@@ -1734,7 +1734,7 @@ static struct config_real ConfigureNamesReal[] =
...
@@ -1734,7 +1734,7 @@ static struct config_real ConfigureNamesReal[] =
NULL
NULL
},
},
&
autovacuum_anl_scale
,
&
autovacuum_anl_scale
,
0
.
1
,
0
.
0
,
100
.
0
,
NULL
,
NULL
0
.
2
,
0
.
0
,
100
.
0
,
NULL
,
NULL
},
},
/* End-of-list marker */
/* End-of-list marker */
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
ba9f9bf1
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
# Note: increasing max_connections costs ~400 bytes of shared memory per
# Note: increasing max_connections costs ~400 bytes of shared memory per
# connection slot, plus lock space (see max_locks_per_transaction). You
# connection slot, plus lock space (see max_locks_per_transaction). You
# might also need to raise shared_buffers to support more connections.
# might also need to raise shared_buffers to support more connections.
#superuser_reserved_connections =
3
# (change requires restart)
#superuser_reserved_connections =
2
# (change requires restart)
#unix_socket_directory = '' # (change requires restart)
#unix_socket_directory = '' # (change requires restart)
#unix_socket_group = '' # (change requires restart)
#unix_socket_group = '' # (change requires restart)
#unix_socket_permissions = 0777 # octal
#unix_socket_permissions = 0777 # octal
...
@@ -345,7 +345,7 @@
...
@@ -345,7 +345,7 @@
#stats_start_collector = on # needed for block or row stats
#stats_start_collector = on # needed for block or row stats
# (change requires restart)
# (change requires restart)
#stats_block_level = off
#stats_block_level = off
#stats_row_level = o
n
#stats_row_level = o
ff
#stats_reset_on_server_start = off # (change requires restart)
#stats_reset_on_server_start = off # (change requires restart)
...
@@ -361,15 +361,15 @@
...
@@ -361,15 +361,15 @@
# AUTOVACUUM PARAMETERS
# AUTOVACUUM PARAMETERS
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
#autovacuum = o
n
# enable autovacuum subprocess?
#autovacuum = o
ff
# enable autovacuum subprocess?
#autovacuum_naptime = 60 # time between autovacuum runs, in secs
#autovacuum_naptime = 60 # time between autovacuum runs, in secs
#autovacuum_vacuum_threshold =
5
00 # min # of tuple updates before
#autovacuum_vacuum_threshold =
10
00 # min # of tuple updates before
# vacuum
# vacuum
#autovacuum_analyze_threshold =
25
0 # min # of tuple updates before
#autovacuum_analyze_threshold =
50
0 # min # of tuple updates before
# analyze
# analyze
#autovacuum_vacuum_scale_factor = 0.
2
# fraction of rel size before
#autovacuum_vacuum_scale_factor = 0.
4
# fraction of rel size before
# vacuum
# vacuum
#autovacuum_analyze_scale_factor = 0.
1
# fraction of rel size before
#autovacuum_analyze_scale_factor = 0.
2
# fraction of rel size before
# analyze
# analyze
#autovacuum_vacuum_cost_delay = -1 # default vacuum cost delay for
#autovacuum_vacuum_cost_delay = -1 # default vacuum cost delay for
# autovac, -1 means use
# autovac, -1 means use
...
...
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