Re: Block at a time ... - Mailing list pgsql-performance

From Tom Lane
Subject Re: Block at a time ...
Date
Msg-id 27894.1268836024@sss.pgh.pa.us
Whole thread Raw
In response to Re: Block at a time ...  (Greg Stark <gsstark@mit.edu>)
Responses Re: Block at a time ...
List pgsql-performance
Greg Stark <gsstark@mit.edu> writes:
> I think we need posix_fallocate().

The problem with posix_fallocate (other than questionable portability)
is that it doesn't appear to guarantee anything at all about what is in
the space it allocates.  Worst case, we might find valid-looking
Postgres data there (eg, because a block was recycled from some recently
dropped table).  If we have to write something anyway to zero the space,
what's the point?

            regards, tom lane

pgsql-performance by date:

Previous
From: Brad Nicholson
Date:
Subject: Re: Testing FusionIO
Next
From: Tom Lane
Date:
Subject: Re: Building multiple indexes concurrently