0

When running select query i am getting below error. I am new to postgres and need your suggestions on this.

ERROR: could not seek to end of segment 0 of relation pg_table1/23111/191232/112333: Input/output error

Please suggest what could be the reasons.

3
  • More details would be appreciated... Table structure, request... Commented Dec 2, 2011 at 15:48
  • What version of Postgres are you running? Please post full logs if possible. Commented Dec 2, 2011 at 15:50
  • I dont have much information about table str, etc. Postgres version is 8.4.7 Commented Dec 2, 2011 at 16:01

1 Answer 1

1

Messages like that are typically signs of some kind of corruption. This link touches on some similar things. Stark Presentation

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, the requests for more information are missing the point. You have corrupt database files due to one of: 1. disk errors 2. operating-system / vm bugs 3. crashes while disks weren't respecting fsync or similar The thing to do is shut down postgresql, take a backup of all the files (including WAL) and see what you can recover. If you have a recent backup, just restore from that - it'll be quicker. Then, find out what's broken on your system - it's unlikely to be PostgreSQL corrupting your data unless you've been hacking on it yourself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.