diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-07-06 22:55:26 +0000 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-07-06 22:55:26 +0000 |
commit | 20be0d480a167c86b505d9a3b477441446c4e999 (patch) | |
tree | 39678d50da168ac581cd27f12254003015342a79 /src/backend/storage/file/fd.c | |
parent | 458474d9d7ff552d697f8a85a61113582c86ae3a (diff) | |
download | postgresql-20be0d480a167c86b505d9a3b477441446c4e999.tar.gz postgresql-20be0d480a167c86b505d9a3b477441446c4e999.zip |
Make log_temp_files based on kB, and revert docs & comments to match.
Per extensive discussion on pgsql-hackers. We are deliberately not
back-patching this even though the behavior of 8.3 and 8.4 is
unquestionably broken, for fear of breaking existing users of this
parameter. This incompatibility should be release-noted.
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r-- | src/backend/storage/file/fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index f68129a8b87..91bf4af8e4d 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.156 2010/02/26 02:00:59 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/file/fd.c,v 1.157 2010/07/06 22:55:26 rhaas Exp $ * * NOTES: * @@ -1062,7 +1062,7 @@ FileClose(File file) { if (stat(vfdP->fileName, &filestats) == 0) { - if (filestats.st_size >= log_temp_files) + if ((filestats.st_size / 1024) >= log_temp_files) ereport(LOG, (errmsg("temporary file: path \"%s\", size %lu", vfdP->fileName, |