Re: About tapes - Mailing list pgsql-hackers

From mac_man2005@hotmail.it
Subject Re: About tapes
Date
Msg-id BLU0-SMTP71314FEA77C360F9446065E6C30@phx.gbl
Whole thread Raw
In response to Re: About tapes  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: About tapes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Robert, so in my example:
- tapes are stored in different files (one tape per file)
- you confirm those first blocks are garbage
- you confirm they could be rewritten with new data

This means that we can do recycle space using one tape per file. Correct?

So, in this case, why do we need to use logical tapesets?
In other words, why Tom affirmed it was impossible to recycle space 
implementing one tape per file?



Il 20/06/2010 23:20, Robert Haas ha scritto:
> On Sat, Jun 19, 2010 at 4:57 AM, mac_man2005@hotmail.it
> <mac_man2005@hotmail.it>  wrote:
>    
>> Tom, Robert,
>> thank you.
>>
>> Now it is clearer how space on tapes is recycled.
>>
>> I tried to follow Robert's example but storing one tape per separate file.
>> Read in the first block of each run (hosted by separate tapes and so by
>> separate files) and output them into extra storage, wherever this extra
>> storage is.
>> Again, those first input blocks are now garbage: is it correct?
>>      
> Yes.
>
>    
>> In this case, what happens when trying to recycle those garbage blocks by
>> hosting the result of merging the second block of each run?
>>      
> You just overwrite them with the new data.
>
>    



pgsql-hackers by date:

Previous
From: Florian Pflug
Date:
Subject: Re: beta3 & the open items list
Next
From: Greg Stark
Date:
Subject: Re: beta3 & the open items list