Re: row is too big

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sim Zacks <sim(at)compulab(dot)co(dot)il>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: row is too big
Date: 2011-08-31 14:10:50
Message-ID: 14896.1314799850@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sim Zacks <sim(at)compulab(dot)co(dot)il> writes:
> The manual doesn't say exactly how much storage a numeric type uses, but
> it seems to me that it is taking up about 12 bytes per field. Does this
> make any sense?

Yeah, that would be the minimum size of a nonzero numeric value in 8.2.
(More recent versions can pack them a bit tighter in many cases.)

You might consider whether you can put all those numeric fields into an
array.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tore Halvorsen 2011-08-31 14:35:30 Index usage on OR queries
Previous Message Merlin Moncure 2011-08-31 13:55:35 Re: heavy swapping, not sure why