Run positions on Tape

From: <mac_man2005(at)hotmail(dot)it>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Run positions on Tape
Date: 2008-02-02 17:23:42
Message-ID: BAY132-DS20E8CF0A6A8F71AAD2ED4E6310@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-02-02 17:40:35 Re: configurability of OOM killer
Previous Message Florian Weimer 2008-02-02 16:21:50 Re: configurability of OOM killer