| The PostgreSQL 9.0 Reference Manual - Volume 3 - Server Administration Guide
by The PostgreSQL Global Development Group Paperback (6"x9"), 274 pages ISBN 9781906966072 RRP £9.95 ($14.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> |
4.8.1 Query and Index Statistics Collector
These parameters control server-wide statistics collection features.
When statistics collection is enabled, the data that is produced can be
accessed via the pg_stat and
pg_statio family of system views.
Refer to section 13 Monitoring Database Activity for more information.
track_activities(boolean)- Enables the collection of information on the currently executing command of each session, along with the time when that command began execution. This parameter is on by default. Note that even when enabled, this information is not visible to all users, only to superusers and the user owning the session being reported on, so it should not represent a security risk. Only superusers can change this setting.
track_activity_query_size(integer)-
Specifies the number of bytes reserved to track the currently
executing command for each active session, for the
pg_stat_activity.current_queryfield. The default value is 1024. This parameter can only be set at server start. track_counts(boolean)- Enables collection of statistics on database activity. This parameter is on by default, because the autovacuum daemon needs the collected information. Only superusers can change this setting.
track_functions(enum)-
Enables tracking of function call counts and time used. Specify
plto track only procedural-language functions,allto also track SQL and C language functions. The default isnone, which disables function statistics tracking. Only superusers can change this setting.Note: SQL-language functions that are simple enough to be “inlined” into the calling query will not be tracked, regardless of this setting.
update_process_title(boolean)-
Enables updating of the process title every time a new SQL command
is received by the server. The process title is typically viewed
by the
pscommand, or in Windows by using the Process Explorer. Only superusers can change this setting. stats_temp_directory(string)- Sets the directory to store temporary statistics data in. This can be a path relative to the data directory or an absolute path. The default is ‘pg_stat_tmp’. Pointing this at a RAM-based file system will decrease physical I/O requirements and can lead to improved performance. This parameter can only be set in the ‘postgresql.conf’ file or on the server command line.
| ISBN 9781906966072 | The PostgreSQL 9.0 Reference Manual - Volume 3 - Server Administration Guide | See the print edition |