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: product_docs/docs/postgis/3/installing/upgrading.mdx
+25-21Lines changed: 25 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,52 +12,56 @@ legacyRedirectsGenerated:
12
12
13
13
These examples show upgrading for RHEL/CentOS 7 platforms:
14
14
15
-
-[Example 1: Upgrading from PostGIS version 3.1 to 3.2](/postgis/latest/installing/upgrading/#example-1-upgrading-from-postgis-version-31-to-32)
15
+
-[Example 1: Upgrading from PostGIS version 3.3 to 3.4](/postgis/latest/installing/upgrading/#example-1-upgrading-from-postgis-version-33-to-34)
16
16
-[Example 2: Upgrading from PostGIS versions 2.5 or later to 3.1.4 on the same EDB Postgres Advanced Server version](/postgis/latest/installing/upgrading/#example-2-upgrading-from-postgis-versions-25-or-later-to-314-on-the-same-edb-postgres-advanced-server-version)
17
17
-[Example 3: Upgrading from PostGIS versions earlier than 2.5 to 3.1.4 on a different EDB Postgres Advanced Server version](/postgis/latest/installing/upgrading/#example-3-upgrading-from-postgis-versions-earlier-than-25-to-314-on-a-different-edb-postgres-advanced-server-version)
18
18
19
-
## Example 1: Upgrading from PostGIS version 3.1 to 3.2
19
+
## Example 1: Upgrading from PostGIS version 3.3 to 3.4
20
20
21
-
This example upgrades from PostGIS version 3.1 to version 3.2 for EDB Postgres Advanced Server 14.
21
+
This example upgrades from PostGIS version 3.3 to version 3.4 for EDB Postgres Advanced Server 15.
22
22
23
-
To avoid accidental upgrades, PostGIS versions 3.1 and 3.2 use different package names. So, upgrading to version 3.2 requires that you first uninstall version 3.1. After you install version 3.2, you can upgrade the PostGIS extensions.
23
+
!!!note Upgrades from 3.1.4 and later versions
24
+
You can perform upgrades from PostGIS versions 3.1.4 and later (including skip upgrades, e.g. 3.1.4 to 3.4) as described in this example. Ensure you replace the source and target PostGIS versions, as well as the EDB Postgres Advanced Server version in commands accordingly.
25
+
!!!
24
26
25
-
1. If you haven't already, create the PostGIS extensions in PostGIS version 3.1. For instructions, see [Creating extensions](/postgis/latest/02_creating_extensions/).
27
+
To avoid accidental upgrades, PostGIS versions 3.3 and 3.4 use different package names. So, upgrading to version 3.4 requires that you first uninstall version 3.3. After you install version 3.4, you can upgrade the PostGIS extensions.
26
28
27
-
1. Uninstall PostGIS version 3.1.
29
+
1. If you haven't already, create the PostGIS extensions in PostGIS version 3.3. For instructions, see [Creating extensions](/postgis/latest/02_creating_extensions/).
30
+
31
+
1. Uninstall PostGIS version 3.3.
28
32
29
-
For EDB Posgres Advanced Server version 14:
33
+
For EDB Posgres Advanced Server version 15:
30
34
31
35
```shell
32
-
yum -y erase edb-as14-postgis3
36
+
dnf -y erase edb-as15-postgis33
33
37
```
34
38
35
39
For earlier versions of EDB Postgres Advanced Server:
36
40
37
41
```shell
38
-
yum erase edb-as<xx>-postgis3
42
+
dnf erase edb-as<xx>-postgis33
39
43
```
40
44
41
45
Where `<xx>` is the version of EDB Postgres Advanced Server.
42
46
43
47
For more information, see [Uninstalling PostGIS](/postgis/latest/installing/uninstalling/).
44
48
45
-
1. Install PostGIS version 3.2. For instructions, see [Installing PostGIS](/postgis/latest/installing/).
49
+
1. Install PostGIS version 3.4. For instructions, see [Installing PostGIS](/postgis/latest/installing/).
46
50
47
51
1. Upgrade the PostGIS extensions:
48
52
49
53
!!! Note
50
-
If you first upgraded from a PostGIS version earlier than 2.5 to PostGIS version 3.1, then you must `DROP` the `postgis_raster extension` before executing the command.
54
+
If you first upgraded from a PostGIS version earlier than 2.5 to PostGIS version 3.1, then you must `DROP` the `postgis_raster extension` before executing the command.
51
55
!!!
52
56
53
57
```sql
54
58
SELECT postgis_extensions_upgrade();
55
59
__OUTPUT__
56
-
NOTICE: Updating extension postgis from3.1.4 to 3.2.1
57
-
NOTICE: Updating extension postgis_sfcgal from3.1.4 to 3.2.1
58
-
NOTICE: Updating extension postgis_raster from3.1.4 to 3.2.1
59
-
NOTICE: Updating extension postgis_topology from3.1.4 to 3.2.1
60
-
NOTICE: Updating extension postgis_tiger_geocoder from3.1.4 to 3.2.1
60
+
NOTICE: Updating extension postgis from3.3.2 to 3.4.2
61
+
NOTICE: Updating extension postgis_sfcgal from3.3.2 to 3.4.2
62
+
NOTICE: Updating extension postgis_raster from3.3.2 to 3.4.2
63
+
NOTICE: Updating extension postgis_topology from3.3.2 to 3.4.2
64
+
NOTICE: Updating extension postgis_tiger_geocoder from3.3.2 to 3.4.2
Upgrade completed, run SELECT postgis_full_version(); for details
@@ -75,7 +79,7 @@ This example upgrades from PostGIS version 2.5.5 to PostGIS version 3.1.4 for ED
75
79
1. To upgrade PostGIS version 2.5.5 to PostGIS version 3.1.4 for EDB Postgres Advanced Server 12, assume superuser privileges and invoke:
76
80
77
81
```shell
78
-
yum upgrade edb-as12-postgis-3.1.4 -y
82
+
dnf upgrade edb-as12-postgis-3.1.4 -y
79
83
```
80
84
81
85
2. To update extensions, switch to the enterprisedb user, connect to the database where you already created extensions with the psql client application, and invoke:
@@ -131,7 +135,7 @@ Step 1 — To upgrade PostGIS version 2.4.6 to 3.1.4, you need to upgrade it
131
135
2. Assume superuser privileges and upgrade to PostGIS version 3.1.1:
132
136
133
137
```shell
134
-
yum upgrade edb-as10-postgis-3.1.1 -y
138
+
dnf upgrade edb-as10-postgis-3.1.1 -y
135
139
```
136
140
137
141
!!! Note
@@ -170,7 +174,7 @@ Step 2 — Upgrade to PostGIS version 3.1.4:
170
174
1. To upgrade PostGIS version 3.1.1 to 3.1.4, invoke the following command for EDB Postgres Advanced Server 10:
171
175
172
176
```shell
173
-
yum upgrade edb-as10-postgis-3.1.4 -y
177
+
dnf upgrade edb-as10-postgis-3.1.4 -y
174
178
```
175
179
176
180
2. To update extensions, switch to the enterprisedb user and invoke:
@@ -229,7 +233,7 @@ Step 3 — Upgrade EDB Postgres Advanced Server version 10 to 14:
229
233
2. Install the EDB Postgres Advanced Server version 14:
230
234
231
235
```shell
232
-
yum install edb-as14-server -y
236
+
dnf install edb-as14-server -y
233
237
```
234
238
235
239
3. Navigate to the `/bin` directory of EDB Advanced Server 14 and initialize the cluster:
@@ -243,7 +247,7 @@ Step 3 — Upgrade EDB Postgres Advanced Server version 10 to 14:
243
247
4. Install PostGIS version 3.1.4 for EDB Postgres Advanced Server version 14.0:
244
248
245
249
```shell
246
-
yum install edb-as14-postgis3-3.1.4 -y
250
+
dnf install edb-as14-postgis3-3.1.4 -y
247
251
```
248
252
249
253
5. Assume superuser privileges and stop the EDB Postgres Advanced Server 14.0 service:
0 commit comments