Skip to content

Commit 7afaf6e

Browse files
authored
Merge pull request #2770 from CSCfi/DBAAS-484
Add warning about reindexing on certain pgsql upgrades
2 parents b9f9b7f + ac3271b commit 7afaf6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/cloud/dbaas/operations.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ The commands to use:
3333
3434
5. Verify with your preferred tool that your database is working as expected.
3535
36+
!!! warning "Certain PostgreSQL upgrades will cause databases to be reindexed"
37+
The libraries used by PostgreSQL internally for collation (sorting, comparing, and ordering data) might change between datastore versions.
38+
When this happens, a full reindex of all databases is required to prevent issues with data consistency.
39+
This reindexing can take a considerable amount of time, especially with large databases containing complex indexes.
40+
Currently upgrading from 17.5 or earlier to 17.6 or newer triggers the reindexing. Upgrading between
41+
minor versions of PostgreSQL 14 also triggers the reindexing, as does upgrading from major version 14 to 17.
42+
Please plan your database upgrades accordingly.
43+
3644
## Major database upgrades
3745
3846
Major version upgrades are no different from the user's point of view, but there's a bit more happening in the background, which creates more possible points of failure.

0 commit comments

Comments
 (0)