Moderator: Moderators
APerfect10 wrote:Your PostgreSQL database has been corrupted which can either be caused by a power failure or faulty hardware.
To resolve the error:That should resolve the issue. After the error has been resolved, it is highly recommend that you go back into your PostgreSQL config file and remove the line we just added.
- Go Start->Programs->PostgreSQL->Configuration Files->Edit postgres.conf
- Scroll to the very end of this file and add the line: zero_damaged_pages = on
- File->Save.
- Go Start->Programs->PostgreSQL->Reload Configurations
Best regards,
Derek
Unable to execute query: SELECT hhh.id_hand FROM tourney_holdem_hand_histories hhh, tourney_holdem_hand_summary hhs WHERE hhs.id_hand=hhh.id_hand AND hhs.id_site=100;; Reason: Fatal Error (ERROR: invalid page header in block 1101 of relation "tourney_holdem_hand_summary" )
pg_dump: dumping contents of table tourney_holdem_hand_histories
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: invalid page header in block 6156 of relation "tourney_holdem_hand_histories"
pg_dump: The command was: COPY public.tourney_holdem_hand_histories (id_hand, history) TO stdout;
pg_dump: *** aborted because of error
There are two main reasons for this error. The first is a result of data corruption from a computer crash that requires reindexing your database. You can reindex your database from the PostgreSQL command prompt. Click Start --> Programs --> PostgreSQL --> Command prompt. At the prompt that appears, type “reindexdb -a” and hit enter. Be aware that if you have large databases this may take a while, so be patient and wait for it to finish.
The second reason for this error is a result of faulty hardware. You can set PostgreSQL to ignore these errors by clicking Start --> Programs --> PostgreSQL --> Configuration Files --> Edit postgresql.conf. In the configuration file that appears, go to the bottom of the file and add the text “zero_damaged_pages = on” on a new line and then save and close the file. Click Start --> Programs --> PostgreSQL --> Reload Configuration and PostgreSQL will ignore the damaged data. If you continue to have problems with that hard drive, you should consider replacing it.
Return to Technical Support / Bug Reports [Read Only]
Users browsing this forum: No registered users and 26 guests