Re: FAQ (disk space)

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Einar Indridason <einari(at)f-prot(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: FAQ (disk space)
Date: 2004-01-26 11:21:24
Message-ID: 20040126112123.GC15844@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 26, 2004 at 10:48:55AM +0000, Einar Indridason wrote:
> On Sat, Jan 24, 2004 at 09:29:12PM -0500, Bruce Momjian wrote:
> > I changed it to:
> >
> > NULLs are stored _as_ bitmaps
>
> Eh... good morning folks. I have been lurking on the postgreSQL lists
> for a while. Now when I read this, a question arise.
>
> Does postgres calculate some sort of a "checksum" over a row?

No.

> I mean... storing whether a field is NULL or not inside a single bit,
> seems slightly risky (especially when we consider how much of the
> hardware out there, is of marginal quality).

The visibility status of a row is also stored in a single bit. So single bit
errors may cause rows to become visible or invisible. Bit errors in length
fields will render a whole row unreadable. A single bit error in the page
header can make the entire page unreadable. This is not something you can
sensebly protect against.

> Would it be worth it to calculate some sort of a checksum over a row, and
> store that checksum along with the row?

There has been discussion about checksumming entire pages and AFAIK they are
in the WAL, I just don't think they in the main data store.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> (... have gone from d-i being barely usable even by its developers
> anywhere, to being about 20% done. Sweet. And the last 80% usually takes
> 20% of the time, too, right?) -- Anthony Towns, debian-devel-announce

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message D. Dante Lorenso 2004-01-26 11:47:04 Storing Configuration settings for a database?
Previous Message tabai 2004-01-26 10:56:30 About Privileges