<font size=2 face="sans-serif">Hello all,</font>
<br>
<br><font size=2 face="sans-serif">We are trying to upgrade from PostgreSQL
(with GIS) from 8.2 to 9..1</font>
<br>
<br><font size=2 face="sans-serif">1) When we execute postgis_restore.pl,
we get an error.</font>
<br>
<br><font size=2 face="sans-serif">D:\Applns\PostgreSQL\9.1\utils>postgis_restore.pl
postgis.sql tnrsp_9.1  d:\publicbackupnew_29june.backup -E=UNICODE
> restore.log</font>
<br><font size=2 face="sans-serif">Converting postgis.sql to ASCII on stdout...</font>
<br><font size=2 face="sans-serif">  Reading list of functions to
ignore...</font>
<br><font size=2 face="sans-serif">  Writing manifest of things to
read from dump file...</font>
<br><font size=2 face="sans-serif">pg_restore: [archiver] input file does
not appear to be a valid archive</font>
<br><font size=2 face="sans-serif">D:\Applns\PostgreSQL\9.1\utils\postgis_restore.pl:
pg_restore returned an error</font>
<br>
<br>
<br><font size=2 face="sans-serif">2) But if we execute pg_restore from
command prompt directly, it is working (loads all data except GIS. GIS
data throws errors). A typical error would be </font>
<br><font size=2 face="sans-serif">"pg_restore: [archiver (db)] could
not execute query: ERROR:  type "geometry" is only a shell</font>
<br><font size=2 face="sans-serif">LINE 24:     the_geom geometry,</font>
<br><font size=2 face="sans-serif">           
          ^</font><font size=2 color=#0000e0 face="sans-serif">"</font>
<br>
<br>
<br><font size=2 face="sans-serif">Version information -</font>
<br><font size=2 face="sans-serif">Source PostgreSQL -</font>
<br><font size=2 face="sans-serif">PostgreSQL 8.2.13 on i686-pc-mingw32,
compiled by GCC gcc.exe (GCC) 3.4.2 (mingw-special)</font>
<br>
<br><font size=2 face="sans-serif">Source GIS -</font>
<br><font size=2 face="sans-serif">POSTGIS="1.1.6" GEOS="2.2.3-CAPI-1.1.1"
PROJ="Rel. 4.5.0, 22 Oct 2006" USE_STATS (procs from 1.3.1 need
upgrade)</font>
<br>
<br><font size=2 face="sans-serif">Target PostgreSQL -</font>
<br><font size=2 face="sans-serif">PostgreSQL 9.1.4, compiled by Visual
C++ build 1500, 32-bit</font>
<br>
<br><font size=2 face="sans-serif">Target GIS - </font>
<br><font size=2 face="sans-serif">"POSTGIS="2.0.0 r9605"
GEOS="3.3.3-CAPI-1.7.4" PROJ="Rel. 4.8.0, 6 March 2012"
GDAL="GDAL 1.9.0, released 2011/12/29" LIBXML="2.7.8"
LIBJSON="UNKNOWN" RASTER"</font>
<br>
<br>
<br><font size=2 face="Trebuchet MS">Any clues as to what we are doing
wrong/how to fix this?</font>
<br>
<br><font size=2 face="Trebuchet MS">Thank you.</font>
<br><font size=2 face="Trebuchet MS">Jayadevan </font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif"><br>
<br>
<br>
<br>
DISCLAIMER:</font><font size=3> </font><font size=1 color=#a2a2a2 face="Tahoma"><br>
<br>
"The information in this e-mail and any attachment is intended only
for the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or
any attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."</font><font size=3><br>
</font><font size=1><br>
</font><font size=3><br>
</font>
<br>
<br>