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
10a5e334
Commit
10a5e334
authored
Jan 16, 2007
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable autovacuum in the default configuration, per discussion.
parent
eb63cc3d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+3
-2
doc/src/sgml/maintenance.sgml
doc/src/sgml/maintenance.sgml
+4
-2
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+3
-3
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+2
-2
No files found.
doc/src/sgml/config.sgml
View file @
10a5e334
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.10
1 2007/01/09 22:16:46 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.10
2 2007/01/16 18:26:02 alvherre
Exp $ -->
<chapter Id="runtime-config">
<title>Server Configuration</title>
...
...
@@ -3043,7 +3043,8 @@ SELECT * FROM parent WHERE key = 2400;
<listitem>
<para>
Enables the collection of row-level statistics on database
activity. This parameter is off by default.
activity. This parameter is on by default, because the autovacuum
daemon needs the collected information.
Only superusers can change this setting.
</para>
</listitem>
...
...
doc/src/sgml/maintenance.sgml
View file @
10a5e334
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.6
5 2006/12/27 14:55:17 momjian
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.6
6 2007/01/16 18:26:02 alvherre
Exp $ -->
<chapter id="maintenance">
<title>Routine Database Maintenance Tasks</title>
...
...
@@ -477,7 +477,9 @@ HINT: Stop the postmaster and use a standalone backend to VACUUM in "mydb".
linkend="guc-stats-start-collector"> and <xref
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
the value of <xref linkend="guc-superuser-reserved-connections">.
the value of <xref linkend="guc-superuser-reserved-connections">. In
the default configuration, autovacuuming is enabled and the related
configuration parameters are appropriately set.
</para>
<para>
...
...
src/backend/utils/misc/guc.c
View file @
10a5e334
...
...
@@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.36
7 2007/01/09 22:16:46 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.36
8 2007/01/16 18:26:02 alvherre
Exp $
*
*--------------------------------------------------------------------
*/
...
...
@@ -711,7 +711,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
},
&
pgstat_collect_tuplelevel
,
fals
e
,
NULL
,
NULL
tru
e
,
NULL
,
NULL
},
{
{
"stats_block_level"
,
PGC_SUSET
,
STATS_COLLECTOR
,
...
...
@@ -748,7 +748,7 @@ static struct config_bool ConfigureNamesBool[] =
NULL
},
&
autovacuum_start_daemon
,
fals
e
,
NULL
,
NULL
tru
e
,
NULL
,
NULL
},
{
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
10a5e334
...
...
@@ -349,7 +349,7 @@
#stats_start_collector = on # needed for block or row stats
# (change requires restart)
#stats_block_level = off
#stats_row_level = o
ff
#stats_row_level = o
n
#stats_reset_on_server_start = off # (change requires restart)
...
...
@@ -365,7 +365,7 @@
# AUTOVACUUM PARAMETERS
#---------------------------------------------------------------------------
#autovacuum = o
ff
# enable autovacuum subprocess?
#autovacuum = o
n
# enable autovacuum subprocess?
# 'on' requires stats_start_collector
# and stats_row_level to also be on
#autovacuum_naptime = 1min # time between autovacuum runs
...
...
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