|
90 | 90 | <sect2>
|
91 | 91 | <title>Migration to Version 10.2.1</title>
|
92 | 92 |
|
93 |
| - <para> |
94 |
| - To migrate to <productname>Postgres Pro</productname> 10, you can perform a dump/restore using |
95 |
| - <xref linkend="app-pg-dumpall">, or use the <xref linkend="pgupgrade"> utility. |
96 |
| - The first option is safer, while the second is faster and can significantly |
97 |
| - speed up the upgrade process for large databases. If you choose to run |
98 |
| - <application>pg_upgrade</application>, make sure to initialize the new |
99 |
| - database cluster with the same <link linkend="app-initdb-data-checksums">checksum setting</link> |
100 |
| - as the database cluster you are migrating from. |
101 |
| - </para> |
102 |
| - |
103 |
| - <para> |
104 |
| - When migrating to <productname>Postgres Pro</productname> 10, do not |
105 |
| - use the <filename>postgrespro-std-&majorversion;</filename> |
106 |
| - package to avoid conflicts. Use the individual packages instead. |
107 |
| - In this case, server autostart needs to be enabled manually, if required. |
108 |
| - </para> |
109 |
| - |
110 |
| - <para>Starting from <productname>Postgres Pro</productname> 10, you can specify the |
111 |
| - default collation provider when initializing the database cluster or |
112 |
| - creating the database, as explained in <xref linkend="collation-managing">. |
113 |
| - You must take it into account when upgrading to this release |
114 |
| - to avoid breaking indexes and constraints. |
115 |
| - </para> |
116 |
| - |
117 |
| - <important> |
118 |
| - <para> |
119 |
| - If your current <productname>Postgres Pro</productname> installation |
120 |
| - uses ICU, do not update ICU library to a newer version. |
121 |
| - Otherwise, you cannot upgrade to <productname>Postgres Pro</productname> 10. |
122 |
| - </para> |
123 |
| - </important> |
124 |
| - <important> |
125 |
| - <para> |
126 |
| - For <productname>PostgreSQL</productname> 9.5 and 9.5.1, |
127 |
| - as well as <productname>Postgres Pro</productname> 9.5.0.1 and |
128 |
| - 9.5.1.2, you cannot perform an upgrade to |
129 |
| - <productname>Postgres Pro</productname> 10 directly. If you are |
130 |
| - using one of these versions, upgrade your installation to an |
131 |
| - intermediate version first, such as |
132 |
| - <productname>Postgres Pro</productname> 9.5.2.1. |
| 93 | + <para>If you are upgrading from a <productname>Postgres Pro</productname> version |
| 94 | + based on the same <productname>PostgreSQL</productname> major release, |
| 95 | + it is enough to install the new version into your current installation directory. |
133 | 96 | </para>
|
134 |
| - </important> |
135 |
| - |
136 |
| - <para> |
137 |
| - When using <xref linkend="pgupgrade">, make sure that |
138 |
| - <xref linkend="APP-INITDB"> sets the correct default collation provider |
139 |
| - for the new database cluster: |
| 97 | + <para>To migrate from <productname>PostgreSQL</productname> or |
| 98 | + <productname>Postgres Pro</productname> versions based on |
| 99 | + any previous <productname>PostgreSQL</productname> major release, see the instructions |
| 100 | + in <link linkend="release-pro-10-1-1">Postgres Pro 10.1.1 Release Notes</link>. |
140 | 101 | </para>
|
141 |
| - <itemizedlist> |
142 |
| - <listitem> |
143 |
| - <para>When migrating from vanilla <productname>PostgreSQL</productname>, specify <literal>libc</> |
144 |
| - as the default collation provider. |
145 |
| - </para> |
146 |
| - </listitem> |
147 |
| - <listitem> |
148 |
| - <para>When upgrading from <productname>Postgres Pro</productname>, omit |
149 |
| - the default collation provider option to select the required collation |
150 |
| - provider automatically. In this case, <literal>libc</literal> provider |
151 |
| - will be used for databases with C and POSIX locales, as well as for all |
152 |
| - databases with single-byte encodings, while <literal>icu</literal> |
153 |
| - provider will be used for all the other cases. |
154 |
| - </para> |
155 |
| - </listitem> |
156 |
| - </itemizedlist> |
157 |
| - <para>If <application>pg_upgrade</application> creates any SQL files in |
158 |
| - its current directory, run these files to complete the upgrade. |
159 |
| - </para> |
160 |
| - |
161 |
| - <para> |
162 |
| - When you are using <xref linkend="app-pg-dumpall"> |
163 |
| - to perform the upgrade, <productname>Postgres Pro</productname> uses |
164 |
| - the collation provider specified with the <command>initdb</command> |
165 |
| - command for the new cluster. In this case, indexes are rebuilt |
166 |
| - automatically. To avoid issues with collation-dependent constraints, |
167 |
| - you are recommended to use <literal>libc</literal> provider when |
168 |
| - upgrading from vanilla <productname>PostgreSQL</productname>, and |
169 |
| - omit the provider when upgrading from a previous version of |
170 |
| - <productname>Postgres Pro</productname>, unless you have databases with |
171 |
| - non-C and non-POSIX collation settings. For such databases, you should |
172 |
| - do the following: |
173 |
| - <itemizedlist> |
174 |
| - <listitem> |
175 |
| - <para>If the new cluster is initialized with locales other than C or POSIX, |
176 |
| - and the database has an single-byte encoding, set LC_COLLATE to '@libc' for this database. |
177 |
| - </para> |
178 |
| - </listitem> |
179 |
| - <listitem> |
180 |
| - <para>If the new cluster is initialized with C or POSIX locale settings and |
181 |
| - the database has a multi-byte encoding, set LC_COLLATE to <literal>'@icu'</literal> for this database. |
182 |
| - </para> |
183 |
| - </listitem> |
184 |
| - </itemizedlist> |
185 |
| - </para> |
186 |
| - |
187 |
| - <note> |
188 |
| - <para> |
189 |
| - If the previous <productname>Postgres Pro</productname> installation |
190 |
| - contained any indexes or constraints depending on collations |
191 |
| - other than the default collation of the database, <literal>C</literal>, |
192 |
| - or <literal>POSIX</literal> in databases with multibyte encodings, |
193 |
| - such databases could contain some data that violated the specified |
194 |
| - constraints and made indexes inconsistent. On Windows, this situation |
195 |
| - can also happen if the database with a multibyte encoding contained |
196 |
| - any indexes or constraints depending on the default collation with a |
197 |
| - verbose name, such as |
198 |
| - <literal>"Russian_Russia[.<replaceable>encoding</replaceable>]"</literal> |
199 |
| - or <literal>"English_United |
200 |
| - States[.<replaceable>encoding</replaceable>]"</literal>. |
201 |
| - In such cases, you can only use <application>pg_upgrade</application> to upgrade to |
202 |
| - <productname>Postgres Pro</productname> 10, as a dump/restore scenario may be impossible. |
203 |
| - To resolve these issues, <application>pg_upgrade</application> declares such indexes and |
204 |
| - constraints invalid and creates <filename>reindex_text_indexes.sql</filename> |
205 |
| - and <filename>validate_text_contraints.sql</filename>, respectively. |
206 |
| - </para> |
207 |
| - </note> |
208 |
| - |
209 |
| - <para> |
210 |
| - When building <productname>Postgres Pro</> manually, you must include ICU |
211 |
| - using the <option>--with-icu</option> option. Otherwise, you cannot |
212 |
| - upgrade to <productname>Postgres Pro</productname> 10 from a previous |
213 |
| - <productname>Postgres Pro</productname> version. |
214 |
| - </para> |
215 | 102 |
|
216 | 103 | </sect2>
|
217 | 104 | </sect1>
|
|
0 commit comments