From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Reducing the overhead of NUMERIC data |
Date: | 2005-11-03 14:13:58 |
Message-ID: | 20051103141358.GA6622@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Simon Riggs wrote:
> On PostgreSQL, CHAR(12) is a bpchar datatype with all instantiations of
> that datatype having a 4 byte varlena header. In this example, all of
> those instantiations having the varlena header set to 12, so essentially
> wasting the 4 byte header.
We need the length word because the actual size in bytes is variable,
due to multibyte encoding considerations.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2005-11-03 14:49:09 | Re: Reducing the overhead of NUMERIC data |
Previous Message | Martijn van Oosterhout | 2005-11-03 14:09:26 | Re: Reducing the overhead of NUMERIC data |
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2005-11-03 14:49:09 | Re: Reducing the overhead of NUMERIC data |
Previous Message | Martijn van Oosterhout | 2005-11-03 14:09:26 | Re: Reducing the overhead of NUMERIC data |