Add an info box about PgHero duplicate index warnings (#909)
Some people asked whether they should be running the maintenance script after seeing a PgHero warning about duplicate indexes. This change highlights that the warning is unrelated to database index corruption.
This commit is contained in:
parent
1dc561d8e0
commit
d5d88f2c37
|
@ -24,6 +24,10 @@ More information: https://wiki.postgresql.org/wiki/Locale_data_changes https://p
|
||||||
If your database is not using `C` or `POSIX` for its collation setting (which you can check with `SELECT datcollate FROM pg_database WHERE datname = current_database();`),
|
If your database is not using `C` or `POSIX` for its collation setting (which you can check with `SELECT datcollate FROM pg_database WHERE datname = current_database();`),
|
||||||
your indexes might be inconsistent, if you ever ran with a version of glibc prior to 2.28 and did not immediately reindex your databases after updating to glibc 2.28 or newer.
|
your indexes might be inconsistent, if you ever ran with a version of glibc prior to 2.28 and did not immediately reindex your databases after updating to glibc 2.28 or newer.
|
||||||
|
|
||||||
|
{{< hint style="info" >}}
|
||||||
|
You may have found this page because of **PgHero** warnings about "Duplicate Indexes". While such warnings can sometimes be indicative of an issue in deploying or updating Mastodon, **they are not related to database index corruption and not indicative of any functional issue with your database**.
|
||||||
|
{{< /hint >}}
|
||||||
|
|
||||||
You can check whether your indexes are consistent using [PostgreSQL's `amcheck` module](https://www.postgresql.org/docs/10/amcheck.html): as the database server's super user, connect to your Mastodon database and issue the following (this may take a while):
|
You can check whether your indexes are consistent using [PostgreSQL's `amcheck` module](https://www.postgresql.org/docs/10/amcheck.html): as the database server's super user, connect to your Mastodon database and issue the following (this may take a while):
|
||||||
|
|
||||||
```SQL
|
```SQL
|
||||||
|
|
Loading…
Reference in New Issue