<!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.16618"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=280555717-03072013><FONT color=#0000ff 
size=2 face=Arial>Yes (custom dump of 8.3.2 + pgis, create new postgis 2.0.4 in 
9.2.4 and restore backup) is the recommended way.  9.2.4 + 1.5.8 are 
borderline compatible so I would avoid that mix and if your ultimate goal is to 
go to 2.0, 1.5.8 requires a hard upgrade anyway so not worth the 
hassle.</FONT></SPAN></DIV><BR>
<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>Marcos 
Cano<BR><B>Sent:</B> Wednesday, July 03, 2013 10:43 AM<BR><B>To:</B> 
postgis-users@lists.osgeo.org<BR><B>Subject:</B> [postgis-users] postgres and 
postgis upgrade<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>So I'm trying to upgrade Postgres and postgis.. My current versions 
are 8.3.2 and 1.3 respectively. And trying to upgrade to postgis 2.0.4 and 
Postgres 9.2.4
<DIV><BR></DIV>
<DIV>I've been trying a lot of options like:hard upgrade of postgis to 
1.5.8 in the Postgres 8.3 ( as I'm sure that version of postgis is 
compatible with Postgres 8.3 and 9.2.4)</DIV>
<DIV>Then installing postgres 9.2.4 + postgis 1.5.8 and do a pg_upgrade and 
finally do a hard upgrade of postgis to 2.0.4 in the postgres 9.2.4 
installation. It  seems to work until an error happened during the 
pg_upgrade<BR><BR>Your installation contains the "name" data type in user 
tables.  This data type changed its internal alignment between your old and 
new  clusters so this cluster cannot currently be upgraded.  You can 
remove the problem tables and restart the upgrade.<BR></DIV>
<DIV><BR></DIV>
<DIV>So I tried another option but I don't know if this will work. Here's my 
idea:</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Do a custom dump of the DB in Postgres 8.3.2 + pgis 1.3 .</DIV>
<DIV><BR></DIV>
<DIV>Install 9.2.4 with postgis 2.0.4</DIV>
<DIV>And do a restore with perl script included in the postgis binary 
folder  (perl utils/<A 
href="http://postgis_restore.pl">postgis_restore.pl</A>)<BR></DIV>
<DIV><BR></DIV>do you think it will work?<BR>
<DIV>
<DIV>
<DIV tabIndex=0 id=:6y><IMG 
src="images/cleardot.gif"></DIV></DIV></DIV></DIV></BODY></HTML>