diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 01:08:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 01:08:27 +0000 |
commit | 3c6248a828af66db4c58247cd39e54583dff1d90 (patch) | |
tree | aae40f171f8d515f820798757dfed1d43db7e3ee /src/backend/storage/file/buffile.c | |
parent | 94b0b545f8124ee2d15a9753fb389d91e4951984 (diff) | |
download | postgresql-3c6248a828af66db4c58247cd39e54583dff1d90.tar.gz postgresql-3c6248a828af66db4c58247cd39e54583dff1d90.zip |
Remove the recently added USE_SEGMENTED_FILES option, and indeed remove all
support for a nonsegmented mode from md.c. Per recent discussions, there
doesn't seem to be much value in a "never segment" option as opposed to
segmenting with a suitably large segment size. So instead provide a
configure-time switch to set the desired segment size in units of gigabytes.
While at it, expose a configure switch for BLCKSZ as well.
Zdenek Kotala
Diffstat (limited to 'src/backend/storage/file/buffile.c')
-rw-r--r-- | src/backend/storage/file/buffile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c index 94e5c67911a..3bcb04b558a 100644 --- a/src/backend/storage/file/buffile.c +++ b/src/backend/storage/file/buffile.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/file/buffile.c,v 1.30 2008/03/10 20:06:27 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/file/buffile.c,v 1.31 2008/05/02 01:08:27 tgl Exp $ * * NOTES: * @@ -38,9 +38,9 @@ #include "storage/buffile.h" /* - * We break BufFiles into gigabyte-sized segments, whether or not - * USE_SEGMENTED_FILES is defined. The reason is that we'd like large - * temporary BufFiles to be spread across multiple tablespaces when available. + * We break BufFiles into gigabyte-sized segments, regardless of RELSEG_SIZE. + * The reason is that we'd like large temporary BufFiles to be spread across + * multiple tablespaces when available. */ #define MAX_PHYSICAL_FILESIZE 0x40000000 #define BUFFILE_SEG_SIZE (MAX_PHYSICAL_FILESIZE / BLCKSZ) |