Re: Bug in pg_dumpall - Mailing list pgsql-general

From Denis Gasparin
Subject Re: Bug in pg_dumpall
Date
Msg-id 3FBE37E9.3050703@edistar.com
Whole thread Raw
In response to Re: Bug in pg_dumpall  (Doug McNaught <doug@mcnaught.org>)
List 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@edistar.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@postgresql.org)




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Humor me: Postgresql vs. MySql (esp. licensing)
Next
From: "Keith C. Perry"
Date:
Subject: Re: PGSQL on shared hosting