Zero out compression buffer for AO and CO tables.
This is done to zero out the padding bytes and hence have consistent compression
ratios. Plus, zero bytes usually compress better.
Suggested by Heikki Linnakangas.
@@ -118,7 +118,7 @@ AppendOnlyStorageWrite_Init(AppendOnlyStorageWrite *storageWrite,
if (storageWrite->storageAttributes.compress)
{
- storageWrite->uncompressedBuffer = (uint8 *) palloc(storageWrite->maxBufferLen * sizeof(uint8));
+ storageWrite->uncompressedBuffer = (uint8 *) palloc0(storageWrite->maxBufferLen * sizeof(uint8));
}
else
{
