Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update README.md

Oliver Günther3de0b33fa75c
diff --git a/docs/installation-and-operations/misc/migration-to-postgresql13/README.md b/docs/installation-and-operations/misc/migration-to-postgresql13/README.md
index 1bda954d926..c465c34201b 100644
--- a/docs/installation-and-operations/misc/migration-to-postgresql13/README.md
+++ b/docs/installation-and-operations/misc/migration-to-postgresql13/README.md
@@ -176,6 +176,23 @@ sudo mv /var/lib/openproject/pgdata-prev /var/lib/openproject/pgdata
And then restart OpenProject.
+## Upgrade table query plans after the upgrade
+
+After an upgrade of PostgreSQL, we strongly recommend running the following SQL command to ensure query plans are regenerated as this doesn't necessarily happen automatically.
+
+For that, open a database console. On a packaged installation, this is the way to do it:
+
+```
+psql $(openproject config:get DATABASE_URL)
+```
+
+Please change the command appropriately for other installation methods. Once connected, run the following command
+
+```sql
+ANALYZE VERBOSE;
+```
+
+
[all-in-one-docker-installation]: ../../installation/docker/#all-in-one-container
[backup-guide]: ../../operation/backing-up/