Re: Bug in pg_dumpall

From: Denis Gasparin <denis(at)edistar(dot)com>
To: Doug McNaught <doug(at)mcnaught(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Bug in pg_dumpall
Date: 2003-11-21 16:06:01
Message-ID: 3FBE37E9.3050703@edistar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm restoring it as the superuser.

You can try to execute the commands directly from psql.

Denis

Doug McNaught wrote:
> Denis Gasparin <denis(at)edistar(dot)com> writes:
>
>
>>Looking into the generated sql, i find that the schema is created with
>>the command:
>>
>>CREATE USER aaa PASSWORD 'bbb' NOCREATEDB NOCREATEUSER;
>>
>>SET SESSION AUTHORIZATION aaa;
>>CREATE SCHEMA aaa;
>>
>>This fails giving me the following error:
>>ERROR: aaaa: permission denied
>>
>>Any ideas?
>
>
> Are you doing the restore as a regular user? Output of pg_dumpall is
> designed to be restored by the superuser.
>
> -Doug
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tim Farrell 2003-11-21 16:07:47 Can't initdb, libdir points to static location
Previous Message Tom Lane 2003-11-21 15:52:00 Re: Humor me: Postgresql vs. MySql (esp. licensing)