mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Provide a build-time option to store large relations as single files, rather
than dividing them into 1GB segments as has been our longtime practice. This requires working support for large files in the operating system; at least for the time being, it won't be the default. Zdenek Kotala
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.36 2008/01/01 19:45:55 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplestore.c,v 1.37 2008/03/10 20:06:27 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -134,14 +134,14 @@ struct Tuplestorestate
|
||||
bool eof_reached; /* read reached EOF (always valid) */
|
||||
int current; /* next array index (valid if INMEM) */
|
||||
int readpos_file; /* file# (valid if WRITEFILE and not eof) */
|
||||
long readpos_offset; /* offset (valid if WRITEFILE and not eof) */
|
||||
off_t readpos_offset; /* offset (valid if WRITEFILE and not eof) */
|
||||
int writepos_file; /* file# (valid if READFILE) */
|
||||
long writepos_offset; /* offset (valid if READFILE) */
|
||||
off_t writepos_offset; /* offset (valid if READFILE) */
|
||||
|
||||
/* markpos_xxx holds marked position for mark and restore */
|
||||
int markpos_current; /* saved "current" */
|
||||
int markpos_file; /* saved "readpos_file" */
|
||||
long markpos_offset; /* saved "readpos_offset" */
|
||||
off_t markpos_offset; /* saved "readpos_offset" */
|
||||
};
|
||||
|
||||
#define COPYTUP(state,tup) ((*(state)->copytup) (state, tup))
|
||||
|
Reference in New Issue
Block a user