mirror of
https://github.com/postgres/postgres.git
synced 2025-12-02 23:42:46 +03:00
Improve trace_sort code to also show the total memory or disk space used.
Per request from Marc.
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/sort/logtape.c,v 1.16 2005/10/15 02:49:37 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/sort/logtape.c,v 1.17 2005/10/18 22:59:37 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -925,3 +925,12 @@ LogicalTapeTell(LogicalTapeSet *lts, int tapenum,
|
||||
*blocknum = lt->curBlockNumber;
|
||||
*offset = lt->pos;
|
||||
}
|
||||
|
||||
/*
|
||||
* Obtain total disk space currently used by a LogicalTapeSet, in blocks.
|
||||
*/
|
||||
long
|
||||
LogicalTapeSetBlocks(LogicalTapeSet *lts)
|
||||
{
|
||||
return lts->nFileBlocks;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user