Re: pg_dumpall -> database import -> user problem.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Preston de Guise <unsane(at)idl(dot)com(dot)au>
Cc: Postgres Admin Mailing List <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_dumpall -> database import -> user problem.
Date: 2002-07-02 13:43:05
Message-ID: 12551.1025617385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Preston de Guise <unsane(at)idl(dot)com(dot)au> writes:
> The procedure that I'm trying is:

> pg_dump production > production.dump
> dropdb development
> createdb development
> psql development -f production.dump

This looks okay to me. I assume you are running the psql session as the
database superuser? Does it produce any messages (other than CREATE,
GRANT, etc)?

Have you tried looking at the dump file to see what it's actually doing?
(If the full dump is too bulky to paw through, try pg_dump -s to dump
just schema commands with no data.)

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Werner Modenbach 2002-07-02 13:45:36 Re: pg_dumpall in crontab doesn't work
Previous Message BAYET Richard 2002-07-02 13:42:01 Re: how to re-configure postgresql-rpm version