Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
release-notes
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Documentation Project
release-notes
Commits
ad75c4ba
Verified
Commit
ad75c4ba
authored
6 years ago
by
Christoph Berg
Committed by
Paul Gevers
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Existing PostgreSQL databases need to be reindexed
Closes: #926627
parent
360998b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
en/issues.dbk
+28
-0
28 additions, 0 deletions
en/issues.dbk
en/release-notes.dbk
+5
-0
5 additions, 0 deletions
en/release-notes.dbk
with
33 additions
and
0 deletions
en/issues.dbk
+
28
−
0
View file @
ad75c4ba
...
@@ -356,6 +356,34 @@ information mentioned in <xref linkend="morereading"/>.
...
@@ -356,6 +356,34 @@ information mentioned in <xref linkend="morereading"/>.
</para>
</para>
</section>
</section>
<section
id=
"postgresql-reindex"
>
<!-- stretch to buster-->
<title>
Existing PostgreSQL databases need to be reindexed
</title>
<para>
When upgrading from stretch to buster, the glibc locale data is upgraded.
Specifically, this changes how PostgreSQL sorts data in text indexes.
To avoid corruption, such indexes need to be
<literal>
REINDEX
</literal>
ed
immediately after upgrading the
<literal>
locales
</literal>
or
<literal>
locales-all
</literal>
packages, before putting back the database
into production.
</para>
<para>
Suggested command:
<literal>
sudo -u postgres reindexdb --all
</literal>
</para>
<para>
Alternatively, upgrade the databases to PostgreSQL 11 using
<literal>
pg_upgradecluster
</literal>
.
(This uses
<literal>
pg_dump
</literal>
by default which will rebuild all
indexes. Using
<literal>
-m upgrade
</literal>
or
<literal>
pg_upgrade
</literal>
is
<emphasis>
not
</emphasis>
safe because it preserves the now-wrong
index ordering.)
</para>
<para>
Refer to the
<ulink
url=
"https://wiki.postgresql.org/wiki/Locale_data_changes"
>
PostgreSQL Wiki
</ulink>
for more information.
</para>
</section>
</section>
</section>
</chapter>
</chapter>
This diff is collapsed.
Click to expand it.
en/release-notes.dbk
+
5
−
0
View file @
ad75c4ba
...
@@ -126,6 +126,11 @@
...
@@ -126,6 +126,11 @@
<surname>
Perrier
</surname>
<surname>
Perrier
</surname>
<contrib>
bubulle, Lenny installation
</contrib>
<contrib>
bubulle, Lenny installation
</contrib>
</author>
,
</author>
,
<author>
<firstname>
Christoph
</firstname>
<surname>
Berg
</surname>
<contrib>
PostgreSQL-specific issues
</contrib>
</author>
,
<author>
<author>
<firstname>
Daniel
</firstname>
<firstname>
Daniel
</firstname>
<surname>
Baumann
</surname>
<surname>
Baumann
</surname>
...
...
This diff is collapsed.
Click to expand it.
Paul Gevers
@elbrus
mentioned in commit
2450dbcc
·
6 years ago
mentioned in commit
2450dbcc
mentioned in commit 2450dbccb68031c3b1d09c42bd0c584d05ddc9c1
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment