Re: [FEATURE REQUEST] Streaming Onlinebackup (MaybeOFFTOPIC) - Mailing list pgsql-hackers

Kevin Grittner wrote:
> <[email protected]>, Simon Riggs <[email protected]>
> wrote: 
>> We should also document that this is designed to help compress files
>> that aren't full because we switched early because of archive_timeout.
>  
> Attached is a modified version to implement both of these.  I also bailed
> out if there was surplus input.  I tried an optimization of allocating a
> separate buffer for outputting the zeros, to avoid repeated memset calls.
> It didn't seem to make a very big difference; do you think it's worth
> cluttering the code with that?

Would it work to just ftruncate the file?

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Temporarily modify tsearch regression tests to suppress notice
Next
From: Simon Riggs
Date:
Subject: Re: [FEATURE REQUEST] Streaming Onlinebackup (MaybeOFFTOPIC)