Re: 12 hour table vacuums - Mailing list pgsql-performance

From Harald Fuchs
Subject Re: 12 hour table vacuums
Date
Msg-id pumyu8zxwk.fsf@srv.protecting.net
Whole thread Raw
In response to 12 hour table vacuums  (Ron St-Pierre <ron.pgsql@shaw.ca>)
List pgsql-performance
In article <471E26E4.7040804@shaw.ca>,
Ron St-Pierre <ron.pgsql@shaw.ca> writes:

>> For what it's worth NUMERIC columns take more space than you might expect.
>> Figure a minimum of 12 bytes your rows are at about 1.5k each even if the
>> non-numeric columns aren't large themselves. What are the other columns?

> The NUMERIC columns hold currency related values, with values ranging
> from a few cents to the billions, as well as a few negative numbers.

What's the required precision? If it's just cents (or maybe tenths
thereof), you could use BIGINT to store the amount in this precision.
This would give you exact values with much less space.

pgsql-performance by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: 12 hour table vacuums
Next
From: "Giulio Cesare Solaroli"
Date:
Subject: Finalizing commit taking very long