Re: Corrupt data pages...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Brown <kevin(at)sysexperts(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Corrupt data pages...
Date: 2006-04-17 02:48:02
Message-ID: 20547.1145242082@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Brown <kevin(at)sysexperts(dot)com> writes:
> After examining the output of pg_filedump, it became obvious this was
> a corrupt page issue. What bothers me is the way in which it's
> corrupt. The corrupt data looks supiciously like the data from
> different table, or perhaps from an index. In this case, from the
> short_desc field of the bugs table, which has a datatype of 'text' (I
> presume this means it's TOASTed?). The text data in the corrupt page
> exactly matches entries in that field of the bugs table.

Substitution of a page from a different table seems unlikely to result
in this error, as the tuple header layout is the same for all tables.
A page from an index, though, maybe. Does the suspicious looking page
have any pd_special space?

We have in the past seen data-corruption errors that were clearly due to
substitution of a chunk of entirely non-Postgres data for a table page.
I suppose that those are symptoms of either kernel or device misfeasance
... it's hard to see how Postgres could cause that to happen. We've not
seen enough of them to detect any pattern though. I rather wonder if
what you've seen is the same thing but the substituted data happens to
be from another Postgres file.

> Additionally, if you'd like to see the output of pg_filedump, I'll be
> happy to post it here (or email it separately). I hesitate to attach
> it here because it's not clear the mailing list's spam filtering would
> let it pass.

You should at least show the page you think is corrupt.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-04-17 03:18:15 Re: TODO: Update pg_dump and psql to use the new COPY libpq
Previous Message Kevin Brown 2006-04-17 02:29:43 Corrupt data pages...