From: | Alvaro Herrera <alvherre(at)atentus(dot)com> |
---|---|
To: | Curt Sampson <cjs(at)cynic(dot)net> |
Cc: | Manfred Koizar <mkoi-pg(at)aon(dot)at>, Josh Jore <josh(at)greentechnologist(dot)org>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Efficient use of space in large table? |
Date: | 2002-07-08 04:36:59 |
Message-ID: | Pine.LNX.4.44.0207080034150.26776-100000@cm-lcon-46-187.cm.vtr.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Curt Sampson dijo:
> On Fri, 5 Jul 2002, Manfred Koizar wrote:
>
> > first of all, text is ok. You might want to store NULL instead of ''
> > to squeeze out a few bytes here and there.
>
> Correct me if I'm wrong, but doesn't NULL take up *more* room than ''?
> After all, as soon as you have a NULL, you have to have a null bit array
> in the tuple.
I think that if you have 32 attributes or less in the table, the bitmap
will use the same space as '' (because '' has the 4-byte length). And
if you have at least one other NULL attribute, the rest come for free.
So no, it won't take more space, AFAIU anyway.
--
Alvaro Herrera (<alvherre[a]atentus.com>)
Officer Krupke, what are we to do?
Gee, officer Krupke, Krup you! (West Side Story, "Gee, Officer Krupke")
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Lane | 2002-07-08 04:40:44 | Re: I am being interviewed by OReilly |
Previous Message | Bruce Momjian | 2002-07-08 04:32:23 | Re: CRC function? |