Thanks for the reply! <div><br></div><div>Yes, I restore in the Postgis database. Install using the command "<span style="background-color:rgb(248,248,249);color:rgb(46,46,46);font-family:'Courier New',Courier,Monaco,monospace;font-size:11px;line-height:16px">CREATE EXTENSION postgis;"</span></div>
<div><font color="#2e2e2e" face="Courier New, Courier, Monaco, monospace"><span style="font-size:11px;line-height:16px"><br></span></font></div>Logs of execution your command in the attachment. I don't see any serious errors.<div>
<br><div class="gmail_quote">On Mon, Nov 26, 2012 at 12:42 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Nov 26, 2012 at 11:50:07AM +0400, Dmitriy Tyugaev wrote:<br>
> Please, help!<br>
><br>
> On Fri, Nov 23, 2012 at 2:45 PM, Dmitriy Tyugaev <<a href="mailto:dtyugaev@gmail.com">dtyugaev@gmail.com</a>> wrote:<br>
><br>
> > Hi list!<br>
> ><br>
> > I want to update my spatial database from Postgis 1.5.5 (PG 8.4) to<br>
> > Postgis 2.0.1 (PG 9.1)<br>
> ><br>
> > I follow the instructions for hard update<br>
> > <a href="http://www.postgis.org/documentation/manual-svn/postgis_installation.html#hard_upgrade" target="_blank">http://www.postgis.org/documentation/manual-svn/postgis_installation.html#hard_upgrade</a><br>
> ><br>
> > pg_dump -h localhost -p 5432 -U postgres -Fc -b -v -f ekopie.backup ekopie<br>
> ><br>
> > Dump is created normally without errors, but I when I try to restore it I<br>
> > get an errors in the log file (on the screen, everything looks ok).<br>
> ><br>
> > perl <a href="http://postgis_restore.pl" target="_blank">postgis_restore.pl</a> "/opt/postgresql-8.4.7/backup/ekopie.backup" |<br>
> > psql -h localhost -p 5432 -U postgres ekopie 2> ekopie_errors<br>
> ><br>
> > ERROR:  constraint "spatial_ref_sys_srid_check" of relation<br>
<br>
</div>Did you install postgis on "ekopie" before restoring the backup on it ?<br>
Also, I'd recommend to redirect <a href="http://postgis_restore.pl" target="_blank">postgis_restore.pl</a> errors into a file too,<br>
and to request verbose operations:<br>
<br>
perl <a href="http://postgis_restore.pl" target="_blank">postgis_restore.pl</a> -v "/opt/postgresql-8.4.7/backup/ekopie.backup" 2><br>
 restore_errors.txt | psql -h localhost -p 5432 -U postgres ekopie 2><br>
 psql_errors.txt<br>
<br>
--strk;<br>
<br>
 <a href="http://www.cartodb.com" target="_blank">http://www.cartodb.com</a> - Map, analyze and build applications with your data<br>
<br>
                                       ~~ <a href="http://strk.keybit.net" target="_blank">http://strk.keybit.net</a><br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br></div>