Run positions on Tape - Mailing list pgsql-hackers

From
Subject Run positions on Tape
Date
Msg-id BAY132-DS20E8CF0A6A8F71AAD2ED4E6310@phx.gbl
Whole thread Raw
List pgsql-hackers
Hi gurus.
 
I'm working on runs formation [ tuplesort.c  &  tuplestore.c ]
Is there a way to know and store the address of the first and the last position of a run on a tape?
 
I would store the location of the first tuple while arranging the current run on the current destination tape.
On the other hand I would store the location of the last tuple of the same run just before writing the first tuple of the possible following run during run formation.
 
I tried to follow all of the "write" function calls  starting from LogicalTapeWrite() [tuplestore.c]. They pass through a lot of buffers before possibly writing to disk.
 
Should I follow those buffers or those infos are already stored somewhere else or can be retreived in a simples way?
 
Thanks for your atention.
 
Regards, Manolo.

pgsql-hackers by date:

Previous
From: Florian Weimer
Date:
Subject: Re: configurability of OOM killer
Next
From: Tom Lane
Date:
Subject: Re: configurability of OOM killer