pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: restore a dump file (with postgis tables):  errors!!
Date: 04 Apr 2003 10:56:39 +0100
Message-ID: <1049450199.10862.55.camel@vitoria.intra.cet.pt> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <1049450199.10862.55.camel@vitoria.intra.cet.pt>
Permalink:  ../1049450199.10862.55.camel@vitoria.intra.cet.pt/
Also on:    postgresql.org/message-id/1049450199.10862.55.camel@vitoria.intra.cet.pt

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pedro-b-salazar@ptinovacao.pt
  Subject: Re: restore a dump file (with postgis tables):  errors!!
  In-Reply-To: <1049450199.10862.55.camel@vitoria.intra.cet.pt>
  References: <1049450199.10862.55.camel@vitoria.intra.cet.pt>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox