Again, please be kind. I'm not a dba and I inherited some old postgress databases.
One of my very ancient debian servers running postgres 7.4.7 filled the data file system. One of my cohorts decided to attempt a reindex followed by a 'vacuum all'. All of this failed miserably and left me with even less space. Now when I run 'psql -h' as postgres I get
'psql: FATAL: could not open relation "pg_trigger": No such file or directory'.
I can use psql to access the database in question. If I 'psql database' I can run 'CREATE DATABASE temp;' but 'psql temp fails with the above error. I do have what appear to be valid pg_dumps. Oh and there's no postgres database like I see on other servers. My question is: Is there a way to solve the above error or failing that is there a way to completely reset the database(s)?
Keep in mind that I can't upgrade postgres (as much as I want to). Some thing I hope may help:
- The data is in /var/lib/postgres/data/base.
- When I run createdb or dropdb I get the FATAL error.
- It'not my fault but it's now my mess.