Re: Bug in pg_dumpall - Mailing list pgsql-general

From Doug McNaught
Subject Re: Bug in pg_dumpall
Date
Msg-id 87y8u9ojcc.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to Bug in pg_dumpall  (Denis Gasparin <denis@edistar.com>)
Responses Re: Bug in pg_dumpall  (Denis Gasparin <denis@edistar.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Carmen Gloria Sepulveda Dedes
Date:
Subject: Execute vacuum
Next
From: Tom Lane
Date:
Subject: Re: PGSQL on shared hosting