Re: Fixed length data types issue
От | Gregory Stark |
---|---|
Тема | Re: Fixed length data types issue |
Дата | |
Msg-id | 87zmdbxuh3.fsf@stark.xeocode.com обсуждение исходный текст |
Ответ на | Re: Fixed length data types issue (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: Fixed length data types issue
Re: Fixed length data types issue |
Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> 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
В списке pgsql-hackers по дате отправления: