You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EN/modules/ROOT/pages/4.4.adoc
+106Lines changed: 106 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,112 @@ We can also create a fallback server using logical replication of an updated ver
143
143
144
144
This upgrade method can be used with built-in logical replication tools and external logical replication systems such as pglogical, Slony, Londiste, and Bucardo.
145
145
146
+
== Use pg_upgrade to upgrade PostgreSQL to IvorySQL
147
+
148
+
`pg_upgrade` supports upgrading native PostgreSQL clusters to IvorySQL. When the source cluster is native PostgreSQL and the target is an IvorySQL cluster, the `-g`(`--using-ora-pg`)parameter must be used.
149
+
150
+
Upgrading from PostgreSQL to IvorySQL is considered a "cross-product" migration. It is recommended to complete comprehensive testing and validation before performing the operation in a production environment, and to develop a detailed rollback plan.
151
+
152
+
=== Parameter description
153
+
154
+
[cols="1,3"]
155
+
|===
156
+
| parameter | description
157
+
158
+
| `-g` / `--using-ora-pg`
159
+
| Indicates that the source cluster is PostgreSQL and the target is an IvorySQL cluster. When this option is enabled, `pg_upgrade` uniformly uses the PostgreSQL standard port when connecting to both clusters, ensuring proper handling of the upgrade.
160
+
|===
161
+
162
+
=== Upgrade steps
163
+
164
+
==== Step 1: Initialize the new IvorySQL cluster
165
+
166
+
[source,bash]
167
+
----
168
+
# Use IvorySQL's initdb to initialize the new cluster
| `-d` | `--old-datadir` | Source cluster data directory
234
+
| `-D` | `--new-datadir` | Target cluster data directory
235
+
| `-g` | `--using-ora-pg` | Upgrade from PostgreSQL to IvorySQL
236
+
| `-p` | `--old-port` | Source cluster port
237
+
| `-P` | `--new-port` | Target cluster PG port
238
+
| `-q` | `--old-oraport` | Source cluster Oracle port
239
+
| `-Q` | `--new-oraport` | Target cluster Oracle port
240
+
| `-j` | `--jobs` | Number of parallel processes
241
+
| `-k` | `--link` | Use hard links instead of file copying
242
+
| `-c` | `--check` | Check compatibility only, do not perform the upgrade
243
+
| `-v` | `--verbose` | Output detailed logs
244
+
|===
245
+
246
+
=== Precautions
247
+
248
+
* The `-g` parameter is only used when the **source is a pure PostgreSQL cluster**、and the target is **IvorySQL** . If the source cluster is already IvorySQL, this parameter is not needed.
249
+
* Both the source and target clusters must be in a stopped state during the upgrade.
250
+
* Be sure to perform a complete backup of the source cluster before upgrading.
251
+
146
252
== Managing IvorySQL Versions
147
253
148
254
IvorySQL is based on PostgreSQL and is updated at the same frequency as PostgreSQL, with one major release per year and one minor release per quarter. IvorySQL {ivorysql-version} is based on PostgreSQL {pg-version}, and all versions of IvorySQL are backward compatible.The relevant version features can be viewed by looking at https://www.ivorysql.org/en/releases-page/[Official Website]。
0 commit comments