<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.16843"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014>Jason,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014>You migth want to wait til 2.1.2 is out which hopefully
will be in next 2 weeks. It has a couple of important geography
fixes and also we changed upgrade process to not drop aggregates unless
absolutely necessary. ST_Union agg did not change between 2.0 and 2.1 so
no need to drop it.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014>Alternatively you can edit the extension script
in share/extension (postgis-2.0.3--2.1.1.sql)</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014>and remove the following lines from
it:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=503341200-19032014>DROP AGGREGATE IF EXISTS ST_Union(geometry);<BR>CREATE
AGGREGATE ST_Union (<BR> basetype = geometry,<BR> sfunc =
pgis_geometry_accum_transfn,<BR> stype = pgis_abs,<BR> finalfunc =
pgis_geometry_union_finalfn<BR> );</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2 face=Arial>Then
run as you did:</FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014>psql -c "ALTER EXTENSION postgis UPDATE TO
'2.1.1';"</SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2 face=Arial>after
you are done:</FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2 face=Arial>run
this: (since script drops all aggs from extension as I recall
)</FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2
face=Arial> ALTER EXTENSION postgis ADD AGGREGATE
ST_Union(geometry);</FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2 face=Arial>Hope
that helps,</FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2
face=Arial>Regina</FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2 face=Arial><A
href="http://www.postgis.us">http://www.postgis.us</A></FONT></SPAN></DIV>
<DIV><SPAN class=503341200-19032014><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><BR></DIV>
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> postgis-users-bounces@lists.osgeo.org
[mailto:postgis-users-bounces@lists.osgeo.org] <B>On Behalf Of
</B>Jason<BR><B>Sent:</B> Tuesday, March 18, 2014 5:52 PM<BR><B>To:</B>
postgis-users@googlegroups.com<BR><B>Subject:</B> [postgis-users] soft upgrade
2.0.3 > 2.1.1<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>
<DIV style="WORD-WRAP: break-word"><SPAN
style="FONT-FAMILY: arial, sans-serif">Hi All,</SPAN>
<DIV style="FONT-FAMILY: arial, sans-serif"><BR></DIV>
<DIV style="FONT-FAMILY: arial, sans-serif">OS: centos 6.5</DIV>
<DIV style="FONT-FAMILY: arial, sans-serif">Postgres: 9.2.7</DIV>
<DIV style="FONT-FAMILY: arial, sans-serif">PostGIS: 2.0.3<BR>
<DIV><BR></DIV>
<DIV>We have recently finished cleaning up and consolidating apps/servers and
upgraded to postgres 9.2.7. Now that postgres is upgraded we decided to get
postgis upgraded as well; currently we are at 2.0.3. According to postgis docs
we can do the "soft upgrade" path, which sounds wonderful. We used "create
extension" for all our 2.0.3 databases.We are on centos 6.5 and I am using yum
to update the postgis packages. I did a quick test on a vm that had a empty
database and the postgis update went fine. After a little research I figured it
was time to run the process on our dev node. The steps are:</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>yum install postgis2_92 #2.1.1</DIV>
<DIV>psql -c "ALTER EXTENSION postgis UPDATE TO '2.1.1';"<BR></DIV>
<DIV><BR></DIV>
<DIV>The yum installed went fine but the "alter extension" failed
with: </DIV>
<DIV>ERROR: cannot drop function st_union(geometry) because other objects
depend on it</DIV>
<DIV>...</DIV>
<DIV><BR></DIV>
<DIV>It went on to list a few views that used that function. I tried dropping
those views but it just moved on to other views that had postgis functions in
them. Dropping all views is not worth it:) </DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Does anyone know if soft upgrading from 2.0.3 > 2.1.1 is possible? Could
it be something in our setup that is stopping us from upgrading. Otherwise it
looks like a hard upgrade is in our future, and its hard to get excited about
that. </DIV>
<DIV><BR></DIV>
<DIV>Thanks! </DIV>
<DIV><BR></DIV></DIV></DIV></DIV><BR>
<P><FONT size=2 face=Arial>This transmission contains confidential and
privileged information intended solely for the party identified above. If you
receive this message in error, you must not use it or convey it to others.
Please destroy it immediately and contact the sender at (303) 386-3955 or by
return e-mail to the sender.</FONT></P></BODY></HTML>