Skip to content

Commit 4b3c38e

Browse files
authored
Merge pull request #1509 from EnterpriseDB/release/2021-06-28
Release/2021 06 28 Former-commit-id: 70589be
2 parents 46a47e0 + aa87bac commit 4b3c38e

File tree

8 files changed

+223
-99
lines changed

8 files changed

+223
-99
lines changed

product_docs/docs/efm/3.10/efm_pgpool_ha_guide/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "EDB Postgres High Availability & Horizontal Read Scaling Architecture"
2+
title: "High Availability & Scalability Guide"
33

44
#legacyRedirectsGenerated:
55
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.

product_docs/docs/efm/3.10/efm_user/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "EDB Failover Manager"
2+
title: "EDB Failover Manager User Guide"
33

44
---
55

product_docs/docs/efm/3.10/index.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
22
title: "EDB Postgres Failover Manager"
3-
productStub: true
3+
#productStub: true
44
directoryDefaults:
55
description: "EDB Postgres Failover Manager Version 3.10 Documentation and release notes. PostgreSQL replication and failover manager for achieving high availability."
6-
6+
navigation:
7+
- "#Getting Started"
8+
- efm_quick_start
9+
- "#Guides"
10+
- efm_pgpool_ha_guide
11+
- efm_user
712
legacyRedirectsGenerated:
813
# This list is generated by a script. If you need add entries, use the `legacyRedirects` key.
914
- "/edb-docs/p/edb-postgres-failover-manager/3.10"
1015
---
1116

12-
<StubCards product='efm' version='3.10' />

product_docs/docs/postgis/1.0/01_installing_postgis.mdx

Lines changed: 88 additions & 54 deletions
Large diffs are not rendered by default.

product_docs/docs/postgis/1.0/02_creating_extensions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ After installing PostGIS, create a PostGIS database and the extensions in each d
1616
./psql -d edb -U enterprisedb -h 127.0.0.1
1717
```
1818

19-
2. Then, to create a privileged role, invoke the following command:
19+
2. Invoke the following command to create a privileged role:
2020

2121
```text
2222
CREATE ROLE gisadmin LOGIN PASSWORD 'password' SUPERUSER;
2323
```
2424

25-
3. Log out of psql, then connect as `gisadmin`:
25+
3. Log out of psql and connect as `gisadmin`:
2626

2727
```text
2828
edb=# \q
2929
./psql -d edb -U gisadmin -h 127.0.0.1
3030
```
3131

32-
4. Use the following commands to create the `postgis` database owned by `gisadmin`:
32+
4. Invoke the following command to create the `postgis` database owned by `gisadmin`:
3333

3434
```text
3535
CREATE DATABASE postgis;

product_docs/docs/postgis/1.0/03_upgrading_postgis.mdx

Lines changed: 95 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ legacyRedirectsGenerated:
88

99
<div id="upgrade" class="registered_link"></div>
1010

11-
This section walks you through the following upgrade examples:
11+
This section walks you through the following upgrade examples for RHEL/CentOS 7 platforms:
1212

1313
- Example 1 - Explains how to Upgrade from PostGIS version 2.4.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server version 9.6.
14-
- Example 2 - Explains how to upgrade from PostGIS version 2.4.6 for EDB Postgres Advanced Server version 9.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server version 13.
14+
- Example 2 - Explains how to upgrade from PostGIS version 2.4.6 for EDB Postgres Advanced Server version 9.6 to PostGIS version 3.1.2 for EDB Postgres Advanced Server version 13.
1515

1616
## Example 1
1717

1818
The following example walks you through the process of upgrading PostGIS version 2.4.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server version 9.6.
1919

2020
!!! Note
2121

22-
It is assumed that you have created extensions for PostGIS version 2.4.6 already and EDB Advanced Sever 9.6 service is running.
22+
It is assumed that you have already created extensions for PostGIS version 2.4.6, and EDB Advanced Server 9.6 service is running.
2323

24-
1. To upgrade PostGIS version 2.4.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server 9.6, assume the superprivilges and execute the following command:
24+
1. To upgrade PostGIS version 2.4.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server 9.6, assume the superuser privileges and invoke the following command:
2525

2626
```text
27-
yum upgrade edb-as96-postgis* -y
27+
yum upgrade edb-as96-postgis-3.1.1 -y
2828
```
2929

30-
2. To update extensions, switch to an `enterprisedb` user, connect to the database (where you have already added extensions) with the psql client application, and execute the following commands:
30+
2. To update extensions, switch to `enterprisedb` user, connect to the database (where you have already created extensions) with the psql client application, and execute the following commands:
3131

3232
```text
3333
edb=# alter extension postgis update to '3.1.1';
@@ -56,39 +56,38 @@ The following example walks you through the process of upgrading PostGIS version
5656

5757
## Example 2
5858

59-
The following example walks you through the process of upgrading PostGIS version 2.4.6 for EDB Postgres Advanced Server 9.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server version 13:
59+
!!! Note
60+
61+
It is assumed that you have already created extensions for PostGIS version 2.4.6, and EDB Advanced Server 9.6 service is running.
6062

61-
!!! Note
63+
When the PostGIS data has a dependency on the raster functions, upgrading to PostGIS version 3.1.2 requires [dumping and reloading the data](https://www.enterprisedb.com/edb-docs/d/postgresql/reference/manual/13.1/app-pgdump.html)
64+
65+
The following example walks you through the process of upgrading PostGIS version 2.4.6 for EDB Postgres Advanced Server 9.6 to PostGIS version 3.1.2 for EDB Postgres Advanced Server version 13:
66+
67+
- Step 1 - Upgrade to PostGIS 3.1.1 - This is an intermediate step required to resolve dependency issues.
68+
69+
- Step 2 - Upgrade to PostGIS 3.1.2
6270

63-
You can upgrade to the PostGIS latest version only for the EDB Postgres Advanced Server version greater than or equal to 9.6.
71+
- Step 3 - Upgrade EDB Postgres Advanced Server version 9.6 to to 13
72+
73+
Step 1 - To upgrade PostGIS version 2.4.6 to 3.1.2, you need to upgrade it to 3.1.1 first.
6474

6575
1. Navigate to the bin directory of EDB Advanced Server 9.6:
6676

6777
```text
6878
cd /usr/edb/as9.6/bin/
6979
```
7080

71-
!!! Note
72-
73-
It is assumed that you have created extensions for PostGIS version 2.4.6 already and EDB Advanced Sever 9.6 service is running.
74-
75-
2. To upgrade PostGIS version 2.4.6 to PostGIS version 3.1.1 for EDB Postgres Advanced Server 9.6, assume the superprivilges and execute the following command:
81+
2. Assume the superuser privileges and invoke the following command to upgrade to PostGIS version 3.1.1:
7682

7783
```text
78-
yum upgrade edb-as96-postgis*
84+
yum upgrade edb-as96-postgis-3.1.1 -y
7985
```
8086

81-
3. To update extensions, switch to an `enterprisedb` user, connect to the database (where you have already added extensions) with the psql client application, and execute the following commands:
82-
8387
!!! Note
88+
See the [Installing PostGIS on a Debian/Ubuntu Host section](https://www.enterprisedb.com/docs/postgis/latest/01_installing_postgis/) for information about Debian platform commands.
8489

85-
The `enterprisedb` user is the default user created when you install the EDB Postgres Advanced Server. If you have created a new user for your database, you can switch to that user.
86-
87-
```text
88-
su enterprisedb
89-
90-
./psql -d edb -p 5444
91-
```
90+
3. To update extensions, switch to `enterprisedb` user, connect to the database (where you have already created extensions) with the psql client application, and execute the following commands:
9291

9392
```text
9493
edb=# alter extension postgis update to '3.1.1';
@@ -115,40 +114,101 @@ The following example walks you through the process of upgrading PostGIS version
115114
(1 row)
116115
```
117116

118-
4. Assume the superuser priviliges to stop the EDB Postgres Advanced Server 9.6 service:
117+
Step 2 - Upgrade to PostGIS version 3.1.2
118+
119+
1. To upgrade PostGIS version 3.1.1 to 3.1.2, invoke the following command for EDB Postgres Advanced Server 9.6:
120+
121+
```text
122+
yum upgrade edb-as96-postgis-3.1.2 -y
123+
```
124+
125+
2. To update extensions, switch to `enterprisedb` user and execute the following commands:
126+
127+
```text
128+
edb=# alter extension postgis update to '3.1.2';
129+
WARNING: unpackaging raster
130+
WARNING: PostGIS Raster functionality has been unpackaged
131+
HINT: type `SELECT postgis_extensions_upgrade();` to finish the upgrade. After upgrading, if you want to drop raster, run: DROP EXTENSION postgis_raster;
132+
ALTER EXTENSION
133+
```
134+
135+
With PostGIS version 3.1.2, the return type of the raster functions has changed, which requires dropping and creating the raster extension as part of the upgrade process.
136+
137+
```text
138+
edb=# drop extension postgis_raster;
139+
DROP EXTENSION
140+
```
141+
142+
```text
143+
edb=# SELECT postgis_extensions_upgrade();
144+
NOTICE: Updating extension postgis_sfcgal from 3.1.1 to 3.1.2
145+
NOTICE: Updating extension postgis_topology from 3.1.1 to 3.1.2
146+
NOTICE: Updating extension postgis_tiger_geocoder from 3.1.1 to 3.1.2
147+
          postgis_extensions_upgrade           
148+
-------------------------------------------------------------------
149+
 Upgrade completed, run SELECT postgis_full_version(); for details
150+
(1 row)
151+
```
152+
153+
```text
154+
edb=# alter extension address_standardizer update to '3.1.2';
155+
ALTER EXTENSION
156+
```
157+
158+
Quit and re-open the psql client session:
159+
160+
```text
161+
edb=# \q
162+
./psql -d edb -p 5444
163+
```
164+
165+
```text
166+
edb=# create extension postgis_raster;
167+
CREATE EXTENSION
168+
```
169+
170+
Step 3 - Upgrade EDB Postgres Advanced Server version 9.6 to to 13:
171+
172+
1. Assume the superuser privileges to stop the EDB Postgres Advanced Server 9.6 service:
119173

120174
```text
121175
systemctl stop edb-as-9.6
122176
```
123177

124-
5. Install the EDB Postgres Advanced Server version 13:
178+
2. Install the EDB Postgres Advanced Server version 13:
125179

126180
```text
127181
yum install edb-as13-server -y
128182
```
129183

130-
6. Navigate to the bin directory of EDB Advanced Server 13 and initialize the cluster:
184+
3. Navigate to the bin directory of EDB Advanced Server 13 and initialize the cluster:
131185

132186
```text
133187
cd /usr/edb/as13/bin/
134188
135189
./edb-as-13-setup initdb
136190
```
137191

138-
7. Install the PostGIS version 3.1.1 for EDB Postgres Advanced Server version 13.0:
192+
4. Install the PostGIS version 3.1.2 for EDB Postgres Advanced Server version 13.0:
139193

140194
```text
141-
yum install edb-as13-postgis3 -y
195+
yum install edb-as13-postgis3-3.1.2 -y
142196
```
143197

144-
8. Switch to an `enterprisedb` user and create a `temp` folder:
198+
5. Assume the superuser privileges to stop the EDB Postgres Advanced Server 13.0 service:
199+
200+
```text
201+
systemctl stop edb-as-13
202+
```
203+
204+
6. Switch to `enterprisedb` user and create a `temp` folder:
145205

146206
```text
147207
su enterprisedb
148208
cd $(mktemp -d)
149209
```
150210

151-
9. Execute the following commands to check cluster compatibility and consistency, as well as to perform the upgrade.
211+
7. Execute the following commands to check cluster compatibility and consistency, as well as to perform the upgrade.
152212

153213
```text
154214
bash-4.2$ /usr/edb/as13/bin/pg_upgrade -d /var/lib/edb/as9.6/data/ -D /var/lib/edb/as13/data/ -U enterprisedb -b /usr/edb/as9.6/bin/ -B /usr/edb/as13/bin/ -p 5444 -P 5445 -c
@@ -238,24 +298,23 @@ The following example walks you through the process of upgrading PostGIS version
238298
./delete_old_cluster.sh
239299
```
240300

241-
10. Assume the superuser priviliges, navigate to the `bin` directory of EDB Postgres Advanced Server 13, and start the service:
301+
8. Assume the superuser privileges, navigate to the `bin` directory of EDB Postgres Advanced Server 13, and start the service:
242302

243303
```text
244304
cd /usr/edb/as13/bin/
245305
246306
systemctl start edb-as-13
247-
248307
```
249308

250-
11. To update extensions, switch to an `enterprisedb` user, connect to the database (where you have already added extensions) with the psql client application, and execute the following commands:
309+
9. To update extensions, switch to `enterprisedb` user, connect to the database (where you have already created extensions) with the psql client application, and execute the following commands:
251310

252311
```text
253312
su enterprisedb
254313
./psql -d edb -p 5444
255314
edb=# SELECT PostGIS_Extensions_Upgrade();
256-
NOTICE: Updating extension postgis 3.1.1
315+
NOTICE: Updating extension postgis 3.1.2
257316
postgis_extensions_upgrade
258317
-------------------------------------------------------------------
259318
Upgrade completed, run SELECT postgis_full_version(); for details
260319
(1 row)
261-
```
320+
```

product_docs/docs/postgis/1.0/04_using_postgis.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The following command creates a table named `roads` table that will hold GIS dat
1616
CREATE TABLE roads ( ID int4, NAME varchar(128) );
1717
```
1818

19-
Then, use the PostGIS `AddGeometryColumn` function to add a column to the table:
19+
Use the PostGIS `AddGeometryColumn` function to add a column to the table:
2020

2121
```text
2222
SELECT AddGeometryColumn( 'roads', 'geom', -1, 'GEOMETRY', 2 );

product_docs/docs/postgis/1.0/index.mdx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,33 @@ EDB PostGIS is a PostgreSQL extension that allows you to store Geographic Inform
1515

1616
The complete documentation for PostGIS is added to your system during the installation and is available online at the [PostGIS project site](https://postgis.net/documentation/).
1717

18+
## What's New ##
19+
20+
This release contains a merge with upstream, which includes the following bug fixes:
21+
22+
- Improved handling of more complex compound coordinate systems.
23+
- The SRID in TopoGeometry is fixed for empty geometry objects.
24+
- Improved message when no zip code is provided for `postgis_tiger_geocoder`.
25+
- Axis flips are now done for a CRS when `Lat` is set as the first column. In other cases, EPSG database order is used.
26+
- Support recent Proj versions that have removed `pj_get_release`.
27+
- The tolerance is now adjusted to improve geodetic calculations.
28+
- Fix on improper conversion of negative geographic azimuth to positive.
29+
- Allow DBSCAN cluster to form when recordset length equal to minPoints.
30+
- Ensure bounding boxes are refreshed after coordinate transforms.
31+
- Fix raster issues related to PostgreSQL 14 tablefunc changes.
32+
- Update to support Tiger 2020.
33+
- Change Proj cache lifetime to last as long as connection.
34+
35+
For more information, please refer to the [Upstream release notes](https://postgis.net/docs/manual-3.1/release_notes.html#idm41899).
36+
37+
!!! Note
38+
To upgrade from PostGIS version 2.5.4 (or lower) to 3.1.2, you must perform the following actions:
39+
- Since the return type of the raster functions have changed, you must drop and re-create the raster extension as part of the upgrade process.
40+
- Before upgrading to version 3.1.2, you must upgrade to 3.1.1 first as an intermediate step.
41+
- When the PostGIS data has a dependency on the raster functions, upgrading to PostGIS 3.1.2 requires dumping and reloading the data.
42+
43+
See the [upgrade section](https://www.enterprisedb.com/docs/postgis/latest/03_upgrading_postgis/) for details.
44+
1845
<div class="toctree" maxdepth="3">
1946

2047
installing_postgis creating_extensions upgrading_postgis using_postgis uninstalling_postgis conclusion

0 commit comments

Comments
 (0)