# כיצד ניתן להריץ שאילתות SQL אם הקונטיינר לא מתחיל? (בנייה מחדש נכשלה)

**URL:** <https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126>\
**Category:** Self-hosting\
**Created:** [18 בינואר,‏ 2023,‏ 8:16am UTC](https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126 "2023-01-18T08:16:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [18 בינואר,‏ 2023,‏ 10:50pm UTC](https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126/4 "2023-01-18T22:50:51Z")

</div>

> [@iamntz](#):
>
> For some reasons, there were about **ten** duplicate tags. Wonder why and how those appear there _in the first place_…

We have seen this in the past, it is a nightmare problem but isolated it to being upgrade related.

Index structure in PG depends on the locale at install time and upgrades can lead to a nightmare sometimes.

[https://github.com/docker-library/postgres/issues/582](https://github.com/docker-library/postgres/issues/582)

If the reindex is not issued early enough, trouble can ensue. Some of our earlier PG docker upgrades did not run this… and some old installs sadly have a bit of a time bomb.

This is mostly resolved these days in the ecosystem but some pain remains.

---

_[View the full topic](https://meta.discourse.org/t/how-does-one-run-sql-queries-if-the-container-doesnt-start-rebuild-failed/252126)._
