From 9fc25c0511b2d45f2a4eb16e8a03911eac89fb61 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 30 Jun 2007 19:12:02 +0000 Subject: Improve logging of checkpoints. Patch by Greg Smith, worked over by Heikki and a little bit by me. --- doc/src/sgml/config.sgml | 109 ++++++++++++++++++++++++++++------------------- 1 file changed, 66 insertions(+), 43 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index c7d2d395c7a..73dcd0be6bd 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -1,4 +1,4 @@ - + Server Configuration @@ -2660,6 +2660,23 @@ SELECT * FROM parent WHERE key = 2400; + + log_checkpoints (boolean) + + log_checkpoints configuration parameter + + + + Causes checkpoints to be logged in the server log. Some + statistics about each checkpoint are included in the log messages, + including the number of buffers written and the time spent writing + them. + This parameter can only be set in the postgresql.conf + file or on the server command line. The default is off. + + + + log_connections (boolean) @@ -2667,15 +2684,20 @@ SELECT * FROM parent WHERE key = 2400; - This outputs a line to the server log detailing each successful - connection. This is off by default, although it is probably very - useful. Some client programs, like psql, attempt - to connect twice while determining if a password is required, so - duplicate connection received messages do not - necessarily indicate a problem. + Causes each attempted connection to the server to be logged, + as well as successful completion of client authentication. This parameter can only be set in the postgresql.conf - file or on the server command line. + file or on the server command line. The default is off. + + + + Some client programs, like psql, attempt + to connect twice while determining if a password is required, so + duplicate connection received messages do not + necessarily indicate a problem. + + @@ -2729,6 +2751,23 @@ SELECT * FROM parent WHERE key = 2400; + + + log_hostname (boolean) + + log_hostname configuration parameter + + + + By default, connection log messages only show the IP address of the + connecting host. Turning on this parameter causes logging of the + host name as well. Note that depending on your host name resolution + setup this might impose a non-negligible performance penalty. + This parameter can only be set in the postgresql.conf + file or on the server command line. + + + log_line_prefix (string) @@ -2860,6 +2899,21 @@ SELECT * FROM parent WHERE key = 2400; + + log_lock_waits (boolean) + + log_lock_waits configuration parameter + + + + Controls whether a log message is produced when a session waits + longer than to acquire a + lock. This is useful in determining if lock waits are causing + poor performance. The default is off. + + + + log_statement (string) @@ -2904,38 +2958,6 @@ SELECT * FROM parent WHERE key = 2400; - - log_hostname (boolean) - - log_hostname configuration parameter - - - - By default, connection log messages only show the IP address of the - connecting host. Turning on this parameter causes logging of the - host name as well. Note that depending on your host name resolution - setup this might impose a non-negligible performance penalty. - This parameter can only be set in the postgresql.conf - file or on the server command line. - - - - - - log_lock_waits (boolean) - - log_lock_waits configuration parameter - - - - Controls whether a log message is produced when a session waits - longer than to acquire a - lock. This is useful in determining if lock waits are causing - poor performance. The default is off. - - - - log_temp_files (integer) @@ -2944,11 +2966,12 @@ SELECT * FROM parent WHERE key = 2400; Controls whether temporary files are logged when deleted. + Temporary files can be + created for sorts, hashes, and temporary query results. A value of zero logs all temporary files, and positive values log only files whose size is equal or greater than - the specified number of kilobytes. Temporary files can be - created for sorts, hashes, and temporary results. The - default is -1 (off). + the specified number of kilobytes. The + default is -1, which disables this logging. -- cgit v1.2.3