X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A4835475458 for ; Fri, 4 Apr 2003 04:58:22 -0500 (EST) Received: from exchange_geral.intra.cet.pt (unknown [194.65.138.11]) by postgresql.org (Postfix) with ESMTP id 71131474E42 for ; Fri, 4 Apr 2003 04:58:20 -0500 (EST) Received: from [10.112.80.105] (10.112.80.105 [10.112.80.105]) by exchange_geral.intra.cet.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id HLWN0KK6; Fri, 4 Apr 2003 11:07:19 +0100 Subject: restore a dump file (with postgis tables): errors!! From: Pedro Salazar To: pgsql-admin Content-Type: text/plain Organization: Portugal Telecom Inovação, S.A. Message-Id: <1049450199.10862.55.camel@vitoria.intra.cet.pt> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 04 Apr 2003 10:56:39 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-10.0 required=5.0 tests=BAYES_10,HEADER_8BITS,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/49 X-Sequence-Number: 8204 Greetings, I have a pgsql 7.3 database where I created postgis tables and my schema with my object model database. I want to dump my database and restore it in another machine with pgsql (also 7.3.2). what I did: 1- pg_dump -U postgres locawadb | gzip > locawa1.dmp.gz 2- createdb -U postgres locawadb (create users in database) gunzip -c locawa1.dmp.gz | psql -U postgres locawadb But I got a few errors on the 2 step. With -a option (echo) in psql I noticed that some errors where about: - the user owner from my schema could not create a schema (well I supposed that this operation should be done through super user postgres); - that functions like srid() and others did not exist!? (shouldn't postgres warrant the order of dependences?); - that some user tables from my schema with geom data types failed to restore; - and a few class errors (?) and invalid namespace of my schema!! My question is: are my procedures of dump and restore database well done? (I already saw that exist a pg_restore command line, ...is it equal to the psql command line or it's better?) thanks, Pedro Salazar. -- PS pedro-b-salazar@ptinovacao.pt PGP:0E129E31D803BC61