Re: Restore option disabled for non-superuser - Mailing list pgadmin-support

From Guillaume Lelarge
Subject Re: Restore option disabled for non-superuser
Date
Msg-id 4D0864D2.5050308@lelarge.info
Whole thread Raw
In response to Restore option disabled for non-superuser  (Konstantin Pelepelin <konstantin.pelepelin@gmail.com>)
Responses Re: Restore option disabled for non-superuser
List pgadmin-support
Le 14/12/2010 22:35, Konstantin Pelepelin a écrit :
> PgAdmin 1.12.2 on WindowsXP
> postgresql 9.0 on linux
> 
> When connecting as 'postgres', 'Restore' option is available, but when
> connecting as 'testuser' (simple user, nocreatedb), even for database
> owned by testuser, restore options are greyed out.
> 
> I think they should not be disabled, in many scenarios db may be
> restored by non-superuser.
> 

I didn't checked, don't have the time right now. But I read the source
code. It seems you only need to have the CREATE priviledge in the
database. So no need to be superuser or to have the createdb priviledge,
but you need to be a user who can create objects in that database. Which
seems fine to me.


-- 
Guillaumehttp://www.postgresql.frhttp://dalibo.com


pgadmin-support by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Max SQL file size?
Next
From: Konstantin Pelepelin
Date:
Subject: Re: Restore option disabled for non-superuser