Skip to content

Commit 3bdd239

Browse files
Fix log_temp_files docs and comments to say bytes not kilobytes.
stat(2) field st_size returns bytes not kilobytes. Bug found during recent performance tuning for PostgreSQL user.
1 parent fd3499b commit 3bdd239

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/src/sgml/config.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.282 2010/06/22 02:57:49 rhaas Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.283 2010/06/25 13:11:25 sriggs Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -3566,7 +3566,7 @@ FROM pg_stat_activity;
35663566
A log entry is made for each temporary file when it is deleted.
35673567
A value of zero logs all temporary file information, while positive
35683568
values log only files whose size is greater than or equal to
3569-
the specified number of kilobytes. The
3569+
the specified number of bytes. The
35703570
default setting is <literal>-1</>, which disables such logging.
35713571
Only superusers can change this setting.
35723572
</para>

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.556 2010/06/17 17:44:40 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.557 2010/06/25 13:11:25 sriggs Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -2051,7 +2051,7 @@ static struct config_int ConfigureNamesInt[] =
20512051

20522052
{
20532053
{"log_temp_files", PGC_SUSET, LOGGING_WHAT,
2054-
gettext_noop("Log the use of temporary files larger than this number of kilobytes."),
2054+
gettext_noop("Log the use of temporary files larger than this number of bytes."),
20552055
gettext_noop("Zero logs all files. The default is -1 (turning this feature off)."),
20562056
GUC_UNIT_KB
20572057
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy