mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add GUC log_temp_files to log the use of temporary files.
Bill Moran
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.365 2007/01/05 22:19:46 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.366 2007/01/09 21:31:14 momjian Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -182,6 +182,7 @@ int log_min_error_statement = ERROR;
|
||||
int log_min_messages = NOTICE;
|
||||
int client_min_messages = NOTICE;
|
||||
int log_min_duration_statement = -1;
|
||||
int log_temp_files = -1;
|
||||
|
||||
int num_temp_buffers = 1000;
|
||||
|
||||
@ -1660,6 +1661,16 @@ static struct config_int ConfigureNamesInt[] =
|
||||
&server_version_num,
|
||||
PG_VERSION_NUM, PG_VERSION_NUM, PG_VERSION_NUM, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
{"log_temp_files", PGC_USERSET, LOGGING_WHAT,
|
||||
gettext_noop("Log the use of temporary files larger than this size."),
|
||||
gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."),
|
||||
NULL
|
||||
},
|
||||
&log_temp_files,
|
||||
-1, -1, INT_MAX, NULL, NULL
|
||||
},
|
||||
|
||||
/* End-of-list marker */
|
||||
{
|
||||
|
Reference in New Issue
Block a user