Re: EMERGENCY

From: Chris Albertson <chrisalbertson90278(at)yahoo(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Henrik Steffen <steffen(at)city-map(dot)de>
Cc: pg <pgsql-general(at)postgresql(dot)org>
Subject: Re: EMERGENCY
Date: 2002-07-15 17:52:41
Message-ID: 20020715175241.36859.qmail@web14703.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Use initdb to build ANOTHER database, leaving your existing one
in tact. Study the difference between the new on and yours.
Next copy some missing files from the new one. The
error messages sound like an "fopen" someplace is failing, posably
if the fopen worked it may proceed to do its re-index???

I think what this shows us it that we need something like an
"fsck" for databases. It should be possable to salvage anything
that is salvageable. This would have to be a stand alone program
that would run with no postmaster running. Maybe called "pgck".

I've had problems like this too and much hand work was required
to repair the damage. Fortunately I logged all my source data in
a way I could "play it back" but in general you can't do that.

--- Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> wrote:
> Henrik Steffen wrote:
> >
> > Hello Tom, anyone, please help me urgently:
> >
> > select * from ANY_TABLE_IN_MY_DB;
> >
> > ALWAYS GIVES:
> >
> > ERROR: cannot open pg_statistic_relid_att_index: No such file or
> directory
> >
> > this is happening in my LIVE System!! how can I repair this quickly
> ?
> >
> > or is only an initb possible?
> >
> > thanks in advance
> >
> > ps.
> > it's certainly still due to the memory problem. I ordered a
> completely new
> > server which will be up and running in 2 or 3 hours hopefully. but
> what can I do
> > now??
>
> Seems you lost your optimizer statistics. Not sure how to fix that.
> There is a reindex command, but I don't know if it will recreate an
> index that doesn't even exist anymore and creating system indexes can
> be
> tricky. I think the only way to do that is to start a standalone
> backend with the -O flag and recreate the index. The description I
> have
> for the index is:
>
> Indexes: pg_statistic_relid_att_index unique btree (starelid,
> staattnum)
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania
> 19026
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

=====
Chris Albertson
Home: 310-376-1029 chrisalbertson90278(at)yahoo(dot)com
Cell: 310-990-7550
Office: 310-336-5189 Christopher(dot)J(dot)Albertson(at)aero(dot)org

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Henrik Steffen 2002-07-15 17:55:59 Re: Tom, I've got an emergency - please help me
Previous Message Bruce Momjian 2002-07-15 17:50:12 Re: Tom, I've got an emergency - please help me