mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Track collation versions for indexes.
Record the current version of dependent collations in pg_depend when creating or rebuilding an index. When accessing the index later, warn that the index may be corrupted if the current version doesn't match. Thanks to Douglas Doole, Peter Eisentraut, Christoph Berg, Laurenz Albe, Michael Paquier, Robert Haas, Tom Lane and others for very helpful discussion. Author: Thomas Munro <thomas.munro@gmail.com> Author: Julien Rouhaud <rjuju123@gmail.com> Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com> (earlier versions) Discussion: https://postgr.es/m/CAEepm%3D0uEQCpfq_%2BLYFBdArCe4Ot98t1aR4eYiYTe%3DyavQygiQ%40mail.gmail.com
This commit is contained in:
@@ -215,6 +215,21 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--index-collation-versions-unknown</option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
When upgrading indexes from releases before 14 that didn't track
|
||||
collation versions, <application>pg_upgrade</application>
|
||||
assumes by default that the upgraded indexes are compatible with the
|
||||
currently installed versions of relevant collations (see
|
||||
<xref linkend="collation-versions"/>). Specify
|
||||
<option>--index-collation-versions-unknown</option> to mark
|
||||
them as needing to be rebuilt instead.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-?</option></term>
|
||||
<term><option>--help</option></term>
|
||||
|
Reference in New Issue
Block a user