From: Preston de Guise <unsane@idl.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres Admin Mailing List <pgsql-admin@postgresql.org>
Subject: Re: pg_dumpall -> database import -> user problem.
Date: 06 Jul 2002 17:41:35 +1000
Message-ID: <1025941295.3404.36.camel@belle> (raw)
In-Reply-To: <12551.1025617385@sss.pgh.pa.us>
References: <1025609263.30666.28.camel@belle>
<12551.1025617385@sss.pgh.pa.us>
On Tue, 2002-07-02 at 23:43, Tom Lane wrote:
> Preston de Guise <unsane@idl.com.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)?
I've run it as postgres and the user account that created the production
and development databases. Both times it has the same effect.
> Have you tried looking at the dump file to see what it's actually doing?
Yup - it clearly has the "grant..." statements to the userids. (Note -
not the usernames, but to the userids.) The userids in the dump
statements match those in the pg_shadow table and the grant statements
generate no errors.
FWIW, I've always had this problem - have tried this technique before
using Postgres 7.0 and the last 6.x release. I'm starting to wonder
whether it's designed to detect users called "preston" and screw them
around ... lol.
Cheers,
-Preston.
--
'There are no secrets. The networked market knows more than companies do
about their own products. And whether the news is good or bad, they tell
everyone.' http://www.cluetrain.com
Receipt of this email does not constitute permission to add the
originating address to any email list.
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: unsane@idl.com.au, tgl@sss.pgh.pa.us
Subject: Re: pg_dumpall -> database import -> user problem.
In-Reply-To: <1025941295.3404.36.camel@belle>
References: <1025609263.30666.28.camel@belle> <12551.1025617385@sss.pgh.pa.us> <1025941295.3404.36.camel@belle>
* 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