Discussion:
Corrupted or deleted pg_tables
(too old to reply)
Curtis Klumas
2004-06-09 01:08:58 UTC
Permalink
We have a database that we manage through Webmin and today, the entires for
the databases dissappeared from webmin. Going in through psql we could see
our data in tables still intact, and have a copy of the directory structure.
Is thier anyway to extract data and reconstruct a new database? We tried
pg_dump but had a host of errors.

---------------------------------------------------

Curtis Klumas
Randr, Inc.
909-205-9138 (cell)
909-669-3427 (office)
***@mail.randrinc.com

---------------------------------------------------




---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Tom Lane
2004-06-09 14:26:55 UTC
Permalink
Post by Curtis Klumas
We have a database that we manage through Webmin and today, the entires for
the databases dissappeared from webmin. Going in through psql we could see
our data in tables still intact, and have a copy of the directory structure.
Is thier anyway to extract data and reconstruct a new database? We tried
pg_dump but had a host of errors.
Like what? The only specific information you've provided here is that
things still work from psql ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Andrew Janian
2004-06-09 14:22:43 UTC
Permalink
Can you post your errors?

Andrew

-----Original Message-----
From: pgsql-admin-***@postgresql.org
[mailto:pgsql-admin-***@postgresql.org]On Behalf Of Curtis Klumas
Sent: Tuesday, June 08, 2004 8:09 PM
To: pgsql-***@postgresql.org
Cc: Jonathan Yee
Subject: Re: [ADMIN] Corrupted or deleted pg_tables



We have a database that we manage through Webmin and today, the entires for
the databases dissappeared from webmin. Going in through psql we could see
our data in tables still intact, and have a copy of the directory structure.
Is thier anyway to extract data and reconstruct a new database? We tried
pg_dump but had a host of errors.

---------------------------------------------------

Curtis Klumas
Randr, Inc.
909-205-9138 (cell)
909-669-3427 (office)
***@mail.randrinc.com

---------------------------------------------------




---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org
Robert Treat
2004-06-11 21:35:16 UTC
Permalink
Post by Curtis Klumas
We have a database that we manage through Webmin and today, the entires for
the databases dissappeared from webmin. Going in through psql we could see
our data in tables still intact, and have a copy of the directory structure.
Is thier anyway to extract data and reconstruct a new database? We tried
pg_dump but had a host of errors.
My guess is that you have hit xid wrap around. Try vacuuming full
template1 and see if your info starts to reappear. Also watch to see if
it tells you some other db's need vacuum.

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Loading...