Re: [OT] "advanced" database design (long)

From: "Alex Turner" <armtuk(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Jorge Godoy" <jgodoy(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: [OT] "advanced" database design (long)
Date: 2008-02-05 16:15:46
Message-ID: 33c6269f0802050815k1d30fc11r41c871a327cfdb90@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

That is a very awesome system. I am constantly impressed at the
awesomeness of Postgresql.

Alex

On Feb 4, 2008 1:06 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Jorge Godoy <jgodoy(at)gmail(dot)com> writes:
> > Em Monday 04 February 2008 07:03:47 Dawid Kuroczko escreveu:
> >> Well, but PostgreSQL's NULLs occupy almost no space, or rather a bit of
> >> space, that is one bit exactly. ;-) I am pretty much sure that
> >> storage-wise looking NULLs
> >> are more efficient.
>
> > I'd say 1 byte every 8 NULLs instead of 1 bit. If you only have 1 NULL, it
> > will cost you 1 byte (not 1 bit). If you have 9, it will cost you 2 bytes
> > (not 9 bits).
>
> This is not quite right --- the amount of space used doesn't change if
> you have more or fewer nulls in a row. A null bitmap is present in a
> row if there are any nulls at all in the row, and its size will be equal
> to the defined number of columns in the table. As you say, there's
> padding overhead too ...
>
> regards, tom lane
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org/
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Turner 2008-02-05 16:17:56 Re: [OT] "advanced" database design (long)
Previous Message Alex Turner 2008-02-05 16:12:20 Re: [OT] "advanced" database design (long)