1- <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.145 2007/09/22 19:10:44 tgl Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.146 2007/09/24 03:12:23 tgl Exp $ -->
22
33<chapter Id="runtime-config">
44 <title>Server Configuration</title>
@@ -3186,30 +3186,19 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
31863186 <title>Query and Index Statistics Collector</title>
31873187
31883188 <para>
3189- These parameters controla server-wide statistics collectionfeature .
3189+ These parameters control server-wide statistics collectionfeatures .
31903190 When statistics collection is enabled, the data that is produced can be
31913191 accessed via the <structname>pg_stat</structname> and
31923192 <structname>pg_statio</structname> family of system views.
31933193 Refer to <xref linkend="monitoring"> for more information.
31943194 </para>
31953195
3196- <note>
3197- <para>
3198- As of <productname>PostgreSQL</productname> 8.2,
3199- <varname>stats_command_string</varname> controls a separate data
3200- collection mechanism that can be turned on or off independently
3201- of whether the statistics-collection subprocess is running.
3202- The subprocess is only needed to support collection of
3203- block-level or row-level statistics.
3204- </para>
3205- </note>
3206-
32073196 <variablelist>
32083197
3209- <varlistentry id="guc-stats-command-string " xreflabel="stats_command_string ">
3210- <term><varname>stats_command_string </varname> (<type>boolean</type>)</term>
3198+ <varlistentry id="guc-track-activities " xreflabel="track_activities ">
3199+ <term><varname>track_activities </varname> (<type>boolean</type>)</term>
32113200 <indexterm>
3212- <primary><varname>stats_command_string </> configuration parameter</primary>
3201+ <primary><varname>track_activities </> configuration parameter</primary>
32133202 </indexterm>
32143203 <listitem>
32153204 <para>
@@ -3225,80 +3214,33 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
32253214 </listitem>
32263215 </varlistentry>
32273216
3228- <varlistentry id="guc-update-process-title" xreflabel="update_process_title">
3229- <term><varname>update_process_title</varname> (<type>boolean</type>)</term>
3230- <indexterm>
3231- <primary><varname>update_process_title</> configuration parameter</primary>
3232- </indexterm>
3233- <listitem>
3234- <para>
3235- Enables updating of the process title every time a new SQL command
3236- is received by the server. The process title is typically viewed
3237- by the <command>ps</> command or in Windows using the <application>Process
3238- Explorer</>. Only superusers can change this setting.
3239- </para>
3240- </listitem>
3241- </varlistentry>
3242-
3243- <varlistentry id="guc-stats-start-collector" xreflabel="stats_start_collector">
3244- <term><varname>stats_start_collector</varname> (<type>boolean</type>)</term>
3245- <indexterm>
3246- <primary><varname>stats_start_collector</> configuration parameter</primary>
3247- </indexterm>
3248- <listitem>
3249- <para>
3250- Controls whether the server should start the
3251- statistics-collection subprocess. This is on by default, but
3252- can be turned off if you know you have no interest in
3253- collecting statistics or running autovacuum.
3254- This parameter can only be set at server start, because the collection
3255- subprocess cannot be started or stopped on-the-fly. (However, the
3256- extent to which statistics are actually gathered can be changed while
3257- the server is running, so long as the subprocess exists.)
3258- </para>
3259- </listitem>
3260- </varlistentry>
3261-
3262- <varlistentry id="guc-stats-block-level" xreflabel="stats_block_level">
3263- <term><varname>stats_block_level</varname> (<type>boolean</type>)</term>
3264- <indexterm>
3265- <primary><varname>stats_block_level</> configuration parameter</primary>
3266- </indexterm>
3267- <listitem>
3268- <para>
3269- Enables the collection of block-level statistics on database
3270- activity. This parameter is off by default.
3271- Only superusers can change this setting.
3272- </para>
3273- </listitem>
3274- </varlistentry>
3275-
3276- <varlistentry id="guc-stats-row-level" xreflabel="stats_row_level">
3277- <term><varname>stats_row_level</varname> (<type>boolean</type>)</term>
3217+ <varlistentry id="guc-track-counts" xreflabel="track_counts">
3218+ <term><varname>track_counts</varname> (<type>boolean</type>)</term>
32783219 <indexterm>
3279- <primary><varname>stats_row_level </> configuration parameter</primary>
3220+ <primary><varname>track_counts </> configuration parameter</primary>
32803221 </indexterm>
32813222 <listitem>
32823223 <para>
3283- Enablesthe collection ofrow-level statistics on database
3284- activity. This parameter is on by default, because the autovacuum
3224+ Enables collection of statistics on database activity.
3225+ This parameter is on by default, because the autovacuum
32853226 daemon needs the collected information.
32863227 Only superusers can change this setting.
32873228 </para>
32883229 </listitem>
32893230 </varlistentry>
32903231
3291- <varlistentry id="guc-stats-reset-on-server-start " xreflabel="stats_reset_on_server_start ">
3292- <term><varname>stats_reset_on_server_start </varname> (<type>boolean</type>)</term>
3232+ <varlistentry id="guc-update-process-title " xreflabel="update_process_title ">
3233+ <term><varname>update_process_title </varname> (<type>boolean</type>)</term>
32933234 <indexterm>
3294- <primary><varname>stats_reset_on_server_start </> configuration parameter</primary>
3235+ <primary><varname>update_process_title </> configuration parameter</primary>
32953236 </indexterm>
32963237 <listitem>
32973238 <para>
3298- If on, collected block-level and row-level statistics are zeroed out
3299- whenever the server is restarted. If off, statistics are accumulated
3300- across server restarts. This parameter is off by default.
3301- This parameter can only be set at server start.
3239+ Enables updating of the process title every time a new SQL command
3240+ is received by the server. The process title is typically viewed
3241+ by the <command>ps</> command,
3242+ or in Windows by using the <application>Process Explorer</>.
3243+ Only superusers can change this setting.
33023244 </para>
33033245 </listitem>
33043246 </varlistentry>
@@ -3369,50 +3311,50 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
33693311 <listitem>
33703312 <para>
33713313 Controls whether the server should run the
3372- autovacuum launcher daemon. This is on by default.
3373- <varname>stats_start_collector</> and <varname>stats_row_level</>
3374- must also be turned on for autovacuum to work.
3314+ autovacuum launcher daemon. This is on by default; however,
3315+ <xref linkend="guc-track-counts"> must also be turned on for
3316+ autovacuum to work.
33753317 This parameter can only be set in the <filename>postgresql.conf</>
33763318 file or on the server command line.
33773319 </para>
33783320 <para>
33793321 Note that even when this parameter is disabled, the system
3380- willperiodically launch autovacuum processesin order to
3322+ will launch autovacuum processesif necessary to
33813323 prevent transaction ID wraparound. See <xref
33823324 linkend="vacuum-for-wraparound"> for more information.
33833325 </para>
33843326 </listitem>
33853327 </varlistentry>
33863328
3387- <varlistentry id="guc-autovacuum-max-workers " xreflabel="autovacuum_max_workers ">
3388- <term><varname>autovacuum_max_workers </varname> (<type>integer</type>)</term>
3329+ <varlistentry id="guc-log- autovacuum-min-duration " xreflabel="log_autovacuum_min_duration ">
3330+ <term><varname>log_autovacuum_min_duration </varname> (<type>integer</type>)</term>
33893331 <indexterm>
3390- <primary><varname>autovacuum_max_workers </> configuration parameter</primary>
3332+ <primary><varname>log_autovacuum_min_duration </> configuration parameter</primary>
33913333 </indexterm>
33923334 <listitem>
33933335 <para>
3394- Specifies the maximum number of autovacuum processes (other than the
3395- autovacuum launcher) which may be running at any one time. The default
3396- is three (<literal>3</literal>). This parameter can only be set in
3336+ Causes each action executed by autovacuum to be logged if it ran for at
3337+ least the specified number of milliseconds. Setting this to zero logs
3338+ all autovacuum actions. Minus-one (the default) disables logging
3339+ autovacuum actions. For example, if you set this to
3340+ <literal>250ms</literal> then all automatic vacuums and analyzes that run
3341+ 250ms or longer will be logged. Enabling this parameter can be helpful
3342+ in tracking autovacuum activity. This setting can only be set in
33973343 the <filename>postgresql.conf</> file or on the server command line.
33983344 </para>
33993345 </listitem>
34003346 </varlistentry>
34013347
3402- <varlistentry id="guc-log- autovacuum" xreflabel="log_autovacuum ">
3403- <term><varname>log_autovacuum </varname> (<type>integer</type>)</term>
3348+ <varlistentry id="guc-autovacuum-max-workers " xreflabel="autovacuum_max_workers ">
3349+ <term><varname>autovacuum_max_workers </varname> (<type>integer</type>)</term>
34043350 <indexterm>
3405- <primary><varname>log_autovacuum </> configuration parameter</primary>
3351+ <primary><varname>autovacuum_max_workers </> configuration parameter</primary>
34063352 </indexterm>
34073353 <listitem>
34083354 <para>
3409- Causes each action executed by autovacuum to be logged if it ran for at
3410- least the specified number of milliseconds. Setting this to zero logs
3411- all autovacuum actions. Minus-one (the default) disables logging
3412- autovacuum actions. For example, if you set this to
3413- <literal>250ms</literal> then all vacuums and analyzes that run
3414- 250ms or longer will be logged. Enabling this parameter can be helpful
3415- in tracking autovacuum activity. This setting can only be set in
3355+ Specifies the maximum number of autovacuum processes (other than the
3356+ autovacuum launcher) which may be running at any one time. The default
3357+ is three. This parameter can only be set in
34163358 the <filename>postgresql.conf</> file or on the server command line.
34173359 </para>
34183360 </listitem>