Re: [HACKERS] Table corrupt? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Table corrupt?
Date
Msg-id 199806092116.RAA05041@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Table corrupt?  (Brandon Ibach <bibach@infomansol.com>)
Responses Re: [HACKERS] Table corrupt?
List pgsql-hackers
>
> Bruce Momjian said:
> >
> > >    Any ideas on what might be going on here?  And, if postgres won't
> > > be able to access the table, is there any hope of extracting rows from
> > > the raw database file, such that I could reconstruct the table?
> >
> > pg_dump -t tablename, drop and reload?
> >
>    I thought pg_dump got the data out via queries through the backend?
> (But, then, I could be wrong... please correct me if so...)
>
> -Brandon :)
>

I gets the data out via COPY, which is slightly different than a normal
query that does through the parser/optimizer/executor.  It is possible
you just have a lot of extra data and it is taking time to vacuum.

If there is a real problem, I would dump the entire database and reload
it.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Brandon Ibach
Date:
Subject: Re: [HACKERS] Table corrupt?
Next
From: Bruce Momjian
Date:
Subject: now 6.4