Search Postgresql Archives

Re: pg_restore fails for postgis data dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stefan Schwarzer <stefan.schwarzer@xxxxxxxxxxxx> writes:
> I just wanted to restore a dump which I did, which includes some  
> postgis data. But, it doesn't work and instead I get this error message:
> pg_restore: restoring data for table "boundaries_national"
> pg_restore: [archiver (db)] error returned by PQputCopyData: server  
> closed the connection unexpectedly
> What does it mean? The dump is from a 8.1 database, whereas the new  
> one is 8.2.

The postgis mailing lists could probably offer you better advice about
exactly how to update a postgis installation, but my uninformed guess
would be that you have to load 8.2 postgis into the (empty) target
database before you restore.  This defeats the dump script's attempts
to install 8.1 postgis objects, which aren't compatible.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux