ERROR: could not open relation 1663/392281/530087: No such file or directory
> I don't know much about postgre, I have no clue what else I can do.
> Please, please any help is very very much appreciated I have lots of
> databases and months of work in postgre (also lots of backups for the
> data in /data)
When you say "in /data", do you mean the directory that contains the
directories "pg_xlog", "base", "global", "pg_clog", etc ?
Did you back up and restore the WHOLE data directory at once? Or did you
restore only parts of it?
When restoring, did you:
- Stop PostgreSQL
- Check with "ps" to ensure no 'postgres' or 'postmaster' instances
were still running
- Move the old data directory out of the way
- Copy the backup data directory from your backups
- start PostgreSQL
?
Have you checked the file system and disk to make sure they're OK?
--
Craig Ringer
--
Sent via pgsql-general mailing list (pgsql-...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
And how exactly did you make the backups? You can't simply take a
filesystem copy of a running database; that won't work.
--
Decibel!, aka Jim C. Nasby, Database Architect dec...@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828
Thanks for all your answers!
I discovered the table that was causing the error, delete it and
create it again (I miss some data but at least everything else is
working now)
Yes, for the backup we copy everything we had under /data (the
directory containing "base", "global", and so on ... we do backups
every day from the server), and then we restore the whole /data
directory at once ... but it did not solve the problem ..
What do you mean by we can't simply take a filesystem copy of a
running database? :-O ... How should we then do the backups (so next
time I will not have the same problem again) ?
Millions of thanks again!
Vanessa
Read the fine manual ...
http://www.postgresql.org/docs/8.3/static/backup.html
Section 24.2 explains the pitfalls of trying to use a filesystem-level
backup. It is possible to do, but you have to be very very careful
to get a consistent snapshot.
regards, tom lane
There is extensive documentation on how to do backups. For filesystem
backups, see PITR.
You might also want to examine all your backup strategies - most running
applications are not happy about being backed up without taking special
steps to ensure data consistency.
--
Anyone who believes exponential growth can go on forever in a finite world,
is either a madman or an economist.
Given the problems you've had, I strongly suggest you take a pg_dump
of the database, restore that dump, and use the restored copy. I bet
there's probably other problems lurking in your database.