# Repairing damaged post\_search\_data (unable to create database dumps and execute search reindex)

**URL:** <https://meta.discourse.org/t/repairing-damaged-post-search-data-unable-to-create-database-dumps-and-execute-search-reindex/57046>\
**Category:** Self-hosting\
**Created:** [7. Februar 2017 um 09:08 UTC](https://meta.discourse.org/t/repairing-damaged-post-search-data-unable-to-create-database-dumps-and-execute-search-reindex/57046 "2017-02-07T09:08:42Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [13. Februar 2017 um 13:36 UTC](https://meta.discourse.org/t/repairing-damaged-post-search-data-unable-to-create-database-dumps-and-execute-search-reindex/57046/9 "2017-02-13T13:36:33Z")

</div>

Something in your `posts` table is broken beyond repair, it may be a column in a row, or multiple rows and multiple columns.

What you can try doing is finding which `id` is broken by selecting it:

```plaintext
psql discourse
% select * from posts where id < 1000 
% select * from posts where id > 1000 and id < 2000 

```

and so on until you isolate the problem row.

Then if you are lucky you can just fix the row by deleting data from it, if you are unlucky you can just delete the row completely

---

_[View the full topic](https://meta.discourse.org/t/repairing-damaged-post-search-data-unable-to-create-database-dumps-and-execute-search-reindex/57046)._
