From: | Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk> |
---|---|
To: | "pgsql-general (at) postgresql (dot) org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Problems with pg_dumpall |
Date: | 2004-03-23 09:48:14 |
Message-ID: | 20040323094814.A25198@bacon |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 23/03/2004 09:23 javier garcia - CEBAS wrote:
> Hi;
> I'm using postgres7.3.4 and I have tried to use pg_dumpall to copya a
> database from one computer to another. I remember I used it once with no
> problem, but now I've found a lot of error.
pg_dumpall dumps all databases in a cluster. You want to use pg_dump
instead.
>
> I've run the restore as the "postgres" superuser, and it seem that when a
>
> table exists previously, or a language or another element, this creates
> an
> error.
> Please. How could I resolve this? Perhaps should I DROP all tables
> previously
> to the restoration?
man pg_dump
look at the -c option.
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
From | Date | Subject | |
---|---|---|---|
Next Message | Neil Conway | 2004-03-23 10:00:14 | linked list rewrite |
Previous Message | Jeremiah Elliott | 2004-03-23 09:41:29 | Re: PHP or JSP? That is the question. |