| From: | "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Subject: | Re: [HACKERS] Reducing the overhead of NUMERIC data |
| Date: | 2005-11-05 03:09:30 |
| Message-ID: | dkh7ol$hmb$1@news.hub.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote
>
> If we were willing to invent the "varlena2" datum format then we could
> save four bytes per numeric, plus reduce numeric's alignment requirement
> from int to short which would probably save another byte per value on
> average. I'm not sure that that's worth doing if numeric and inet are
> the only beneficiaries, but it might be.
>
I would support "varlena2" from user's applications. Another benefit is for
char types. Many applications are from DB2, Oracle or SQL Server:
Max Char Length
DB2 32672
SQL 8000
Oracle 4000
All of above just need varlena2. To support bigger char types, we could
follow the tradition "long varchar", etc.
Regards,
Qingqing
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2005-11-05 03:10:38 | Re: Possible problem with pg_reload_conf() and view pg_settings |
| Previous Message | Qingqing Zhou | 2005-11-05 02:55:37 | Re: Possible problem with pg_reload_conf() and view |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martijn van Oosterhout | 2005-11-05 10:40:05 | Re: Reducing the overhead of NUMERIC data |
| Previous Message | Tom Lane | 2005-11-05 00:38:08 | Re: AIX FAQ addition |