mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Second phase of psort reconstruction project: add bookkeeping logic to
recycle storage within sort temp file on a block-by-block basis. This reduces peak disk usage to essentially just the volume of data being sorted, whereas it had been about 4x the data volume before.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: buffile.h,v 1.1 1999/10/13 15:02:32 tgl Exp $
|
||||
* $Id: buffile.h,v 1.2 1999/10/16 19:49:27 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -37,11 +37,12 @@ typedef struct BufFile BufFile;
|
||||
|
||||
extern BufFile *BufFileCreateTemp(void);
|
||||
extern BufFile *BufFileCreate(File file);
|
||||
extern BufFile *BufFileReaccess(BufFile *file);
|
||||
extern void BufFileClose(BufFile *file);
|
||||
extern size_t BufFileRead(BufFile *file, void *ptr, size_t size);
|
||||
extern size_t BufFileWrite(BufFile *file, void *ptr, size_t size);
|
||||
extern int BufFileSeek(BufFile *file, int fileno, long offset, int whence);
|
||||
extern void BufFileTell(BufFile *file, int *fileno, long *offset);
|
||||
extern int BufFileSeekBlock(BufFile *file, long blknum);
|
||||
extern long BufFileTellBlock(BufFile *file);
|
||||
|
||||
#endif /* BUFFILE_H */
|
||||
|
||||
Reference in New Issue
Block a user