pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amir Becher <abecher@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: Corrupt index
Date: Thu, 10 Apr 2003 11:55:17 -0700 (PDT)
Message-ID: <20030410185517.81295.qmail@web13907.mail.yahoo.com> (raw)
In-Reply-To: <5438.1049997840@sss.pgh.pa.us>

This pattern of misbehavior does occur repeatedly for
me. 

I don't know if this may have something to do with it,
but we do backup the data every night using VERITAS
Backup Exec. We are not restoring anything, though
(the data is backed up to tape). The VERITAS software
runs on Windows, but there is an agent that runs on
our Linux box where the PostgreSQL data is stored. I
should also mention that the backup is running while
the database is being modified (we modify the database
24/7).

There is another unexpected behavior that I noticed
for the first time this morning (so I am not sure if
it's recurring, related or relevant). The database
"blinked" in the sense that all database connections
were lost - but new connections could be obtained
immediately after the "blink". The error message that
I got said something about possible "corrupted shared
memory" and I guess the shutting down of the
connections was a precautionary measure.

I hope this additional information helps.

--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Amir Becher <abecher@yahoo.com> writes:
> > Here is an example of the misbehavior that I am
> > seeing:
> > [snip]
> > The main point is that "column_a" is the wrong
> number.
> 
> Hmm.  This looks like you must have an index entry
> pointing at the wrong
> heap tuple.  Which is not something we hear of
> regularly, and certainly
> not an error that I'd expect to see appearing in
> isolation.
> 
> You didn't say in so many words, but should I take
> it that (a) this
> pattern of misbehavior (wrong row returned) occurs
> repeatedly for you,
> and (b) there are no other signs of problems
> (backend unexpectedly
> quits, strange error messages, that sort of thing)?
> 
> I can't really think of any plausible mechanism for
> this to happen,
> except for the index and table files getting out of
> sync somehow.
> Are you doing anything that operates directly on the
> database files
> (for example, doing backup/restore with cp or tar or
> some such)?
> 
> 			regards, tom lane

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com




view thread (25+ messages)  latest in thread

Message-ID: <20030410185517.81295.qmail@web13907.mail.yahoo.com>
Permalink:  ../20030410185517.81295.qmail@web13907.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030410185517.81295.qmail@web13907.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: abecher@yahoo.com, tgl@sss.pgh.pa.us
  Subject: Re: Corrupt index
  In-Reply-To: <20030410185517.81295.qmail@web13907.mail.yahoo.com>
  References: <5438.1049997840@sss.pgh.pa.us> <20030410185517.81295.qmail@web13907.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox