[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    Re: [postgis-users] Upgrade PostgreSQL/PostGIS - Version 9.2.9/2.1 to	10.3/2.4.4
From:       "Regina Obe" <lr () pcorp ! us>
Date:       2019-03-08 19:32:40
Message-ID: 004701d4d5e5$b2186fc0$16494f40$ () pcorp ! us
[Download RAW message or body]

This is a multipart message in MIME format.

[Attachment #2 (multipart/alternative)]
This is a multipart message in MIME format.


I just finished an upgrade on windows from 2.1 to 11 / 2.5 (no ArcGIS involved) and \
one on CentOS 6 from 2.1 to 9.6 (with ArcGIS) 

 

There are two approaches you can take. In both approaches you should install

PostgreSQL 10.3/2.4 first on a separate port and make sure you install the ArcGIS \
extensions st_geometry etc, for 10.3/2.4 if you are using those

 

Approach 1 do a pg_dump of your 9.2 database  – note you'll want to script users \
separately and ensure they are in place before you do the restore

                Do pg_restore on 10.3/2.4

 

Approach 2 using pg_upgrade – I tend to prefer because it's much faster than \
approach 1 and migrates everything. This is especially handy if you have several \
databases or a fairly complex configuration.

Going from 2.1 to 2.4 is a bit tricky because some functions were removed in 2.2 so \
need to be removed before you can do an upgrade.

 

Basic steps I have outlined here - \
http://www.bostongis.com/blog/index.php?/archives/273-Using-pg_upgrade-to-upgrade-PostgreSQL-9.3-PostGIS-2.1-to-PostgreSQL-11-2.5-on-Yum.html \
(though this is CENTOS specific, the general upgrade params are much the same)

 

I should also mention if you feel squeamish about doing upgrade yourself, I'm \
available for consulting.

 

Thanks,

Regina

http://www.paragoncorporation.com

 

 

 

 

From: postgis-users [mailto:postgis-users-bounces@lists.osgeo.org] On Behalf Of ivo \
                silvestre
Sent: Friday, March 08, 2019 12:50 PM
To: postgis-users@lists.osgeo.org
Subject: [postgis-users] Upgrade PostgreSQL/PostGIS - Version 9.2.9/2.1 to 10.3/2.4.4

 

Hi,

 

Sorry if the subject is repeated, but I did not find this specific topic. 

 

I have PostgreSQL 9.2.9 and PostGIS 2.1 running on Windows Server and I have to \
upgrade to version 10.3 / 2.4.4.

The specific versions is due to PostgreSQL database requirements for ArcGIS 10.6.x \
(http://desktop.arcgis.com/en/system-requirements/latest/database-requirements-postgresql.htm).


 

All backups are made. Together, all the databases have around 4GB.

 

What's the best way to make this migration without affecting any configuration (web \
services, users privileges, database connections, etc.)?

 

Kind regards,

Ivo Silvestre
______________________________

especialista em SIG ● GIS specialist

 <https://www.linkedin.com/in/ivomts> 


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} o\:* \
{behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.gmail-tlid-translation
	{mso-style-name:gmail-tlid-translation;}
span.gmail-
	{mso-style-name:gmail-;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:994576244;
	mso-list-type:hybrid;
	mso-list-template-ids:-744563016 67698705 67698713 67698715 67698703 67698713 \
67698715 67698703 67698713 67698715;} @list l0:level1
	{mso-level-text:"%1\)";
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I just \
finished an upgrade on windows from 2.1 to 11 / 2.5 (no ArcGIS involved) and one on \
CentOS 6 from 2.1 to 9.6 (with ArcGIS) <o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>There are two \
approaches you can take. In both approaches you should \
install<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>PostgreSQL \
10.3/2.4 first on a separate port and make sure you install the ArcGIS extensions \
st_geometry etc, for 10.3/2.4 if you are using those<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Approach 1 do \
a pg_dump of your 9.2 database   – note you'll want to script users separately and \
ensure they are in place before you do the restore<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>              \
Do pg_restore on 10.3/2.4<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Approach 2 \
using pg_upgrade – I tend to prefer because it's much faster than approach 1 and \
migrates everything. This is especially handy if you have several databases or a \
fairly complex configuration.<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Going from \
2.1 to 2.4 is a bit tricky because some functions were removed in 2.2 so need to be \
removed before you can do an upgrade.<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Basic steps I \
have outlined here - <a \
href="http://www.bostongis.com/blog/index.php?/archives/273-Using-pg_upgrade-to-upgrad \
e-PostgreSQL-9.3-PostGIS-2.1-to-PostgreSQL-11-2.5-on-Yum.html">http://www.bostongis.co \
m/blog/index.php?/archives/273-Using-pg_upgrade-to-upgrade-PostgreSQL-9.3-PostGIS-2.1-to-PostgreSQL-11-2.5-on-Yum.html</a> \
(though this is CENTOS specific, the general upgrade params are much the \
same)<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I should also \
mention if you feel squeamish about doing upgrade yourself, I'm available for \
consulting.<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Thanks,<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Regina<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a \
href="http://www.paragoncorporation.com">http://www.paragoncorporation.com</a><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p>&nbsp;</o:p></span></p><div \
style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div \
style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p \
class=MsoNormal><b><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif'> postgis-users \
[mailto:postgis-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>ivo \
silvestre<br><b>Sent:</b> Friday, March 08, 2019 12:50 PM<br><b>To:</b> \
postgis-users@lists.osgeo.org<br><b>Subject:</b> [postgis-users] Upgrade \
PostgreSQL/PostGIS - Version 9.2.9/2.1 to \
10.3/2.4.4<o:p></o:p></span></p></div></div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><div><div><p \
class=MsoNormal>Hi,<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><span \
class=gmail->Sorry if the subject is repeated, but I did not find this specific \
topic.</span> <o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I have PostgreSQL \
9.2.9 and PostGIS 2.1 running on Windows Server and I have to upgrade to version 10.3 \
/ 2.4.4.<o:p></o:p></p></div><div><p class=MsoNormal>The specific versions is due to \
PostgreSQL database requirements for ArcGIS 10.6.x (<a \
href="http://desktop.arcgis.com/en/system-requirements/latest/database-requirements-po \
stgresql.htm">http://desktop.arcgis.com/en/system-requirements/latest/database-requirements-postgresql.htm</a>).<o:p></o:p></p></div></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>All backups are \
made. Together, all the databases have around 4GB.<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal>What's the best way to \
make this migration without affecting any configuration (web services, users \
privileges, database connections, etc.)?<o:p></o:p></p><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>Kind \
regards,<o:p></o:p></p></div><div><div><div><div><div><div><div><p \
class=MsoNormal><i><span style='font-size:10.0pt'>Ivo Silvestre</span></i><span \
style='font-size:10.0pt'><br></span><span \
style='font-size:7.5pt'>______________________________</span><o:p></o:p></p></div><p \
class=MsoNormal style='margin-bottom:12.0pt'><b><span \
style='font-size:7.5pt'>especialista em SIG ● </span></b><b><span lang=EN \
style='font-size:7.5pt'>GIS specialist</span></b><o:p></o:p></p><div><p \
class=MsoNormal><span style='font-size:7.5pt'><a \
href="https://www.linkedin.com/in/ivomts" target="_blank"><span \
style='text-decoration:none'><img border=0 width=128 height=20 id="_x0000_i1025" \
src="https://docs.google.com/uc?export=download&amp;id=0BwkgyyMKAIJraGhacnVRS09DUVk&am \
p;revid=0BwkgyyMKAIJrV3drdmhRa2xSbndtdXNER2xLRlBxQzZpSks4PQ"></span></a></span><o:p></ \
o:p></p></div></div></div></div></div></div></div></div></div></div></div></div></div></body></html>



[Attachment #6 (text/plain)]

_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic