Peter Eisentraut <[EMAIL PROTECTED]> writes: > Gregory Stark wrote: > > By my count postgres would use 154 bytes for this record. Whereas in > > fact there's no need for it to take more than 87 bytes. Almost 100% > > overhead for varattlen headers and the padding they necessitate. > > The thing is, 100% extra space is cheap, but the processing power for > making the need for that extra space go away is not.
That's simply untrue for most applications. Unless you can fit much of your database into RAM that 100% extra space translates directly into 100% slower. This is most obviously the case for data warehouses that are doing lots of sequential scans of tables that don't fit in cache. But it's largely true for OLTP applications too. The more compact the data the more tuples fit on a page and the greater the chance you have the page you need in cache. -- greg ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly