[postgis-users] pgrestore

Raffaele Morelli raffaele.morelli at gmail.com
Fri Apr 15 02:15:01 PDT 2011


Hi,

I have a serious problem in restoring a postgis enabled database from one
server to another and I don't know what the problem could be.

When trying to restore I got this lines (only the starting ones here) from
pgadmin interface. Any suggestion?

best regards
raffaele

/usr/bin/pg_restore --host 127.0.0.1 --port 5432 --username rmorelli
--dbname cen_rf --verbose
"/home/rmorelli/Documents/backup/cen/cen_rf.backup"
pg_restore: connessione al database per ripristino
pg_restore: creazione di SCHEMA public
pg_restore: creazione di COMMENT SCHEMA public
pg_restore: creazione di PROCEDURAL LANGUAGE plpgsql
pg_restore: [archiviatore (db)] Errore durante PROCESSING TOC:
pg_restore: [archiviatore (db)] Errore nalla voce TOC 1265; 2612 49195
PROCEDURAL LANGUAGE plpgsql postgres
pg_restore: [archiviatore (db)] could not execute query: ERROR:  language
"plpgsql" already exists
    Command was:
CREATE PROCEDURAL LANGUAGE plpgsql;
pg_restore: creazione di SHELL TYPE box2d
pg_restore: [archiviatore (db)] Errore nalla voce TOC 1151; 0 0 SHELL TYPE
box2d postgres
pg_restore: [archiviatore (db)] could not execute query: ERROR:  type
"box2d" already exists
    Command was: CREATE TYPE box2d;
pg_restore: creazione di FUNCTION box2d_in(cstring)
pg_restore: [archiviatore (db)] Errore nalla voce TOC 84; 1255 49272
FUNCTION box2d_in(cstring) postgres
pg_restore: [archiviatore (db)] could not execute query: ERROR:  function
"box2d_in" already exists with same argument types
    Command was: CREATE FUNCTION box2d_in(cstring) RETURNS box2d
    LANGUAGE c IMMUTABLE STRICT
    AS '$libdir/postgis-1.5', 'BOX2DFLOAT4_in';
pg_restore: creazione di FUNCTION box2d_out(box2d)
pg_restore: [archiviatore (db)] Errore nalla voce TOC 85; 1255 49273
FUNCTION box2d_out(box2d) postgres
pg_restore: [archiviatore (db)] could not execute query: ERROR:  function
"box2d_out" already exists with same argument types
    Command was: CREATE FUNCTION box2d_out(box2d) RETURNS cstring
    LANGUAGE c IMMUTABLE STRICT
    AS '$libdir/postgis-1.5', 'BOX2DFLOAT4_...

-- 
*L'unica speranza di catarsi, ammesso che ne esista una, resta affidata
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla
protesta violenta e viscerale.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110415/c22757c7/attachment.html>


More information about the postgis-users mailing list