From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | Tripura <k_tripura(at)hotmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Create & Alter Schema Permissions for a Login role in Postgresql database |
Date: | 2012-01-13 07:12:50 |
Message-ID: | 1326438770.2308.0.camel@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Tue, 2012-01-10 at 11:33 -0800, Tripura wrote:
> I have a Postgresql database with 3 Schemas (2 user defined and 1 public).
>
> I have script that takes backup of the user defined schema's and then drops
> the schema's.
>
> Now after doing some operations I want to restore the user defined schemas
> from the schema backup(schema_backup.out).
>
> When I execute
> cat schema_backup.out | psql xx_db_name_xx
>
> I am getting the following error message
> ERROR: permission denied for database xx_db_name_xx
> ERROR: schema "aaaa" does not exist
> ERROR: permission denied for database xx_db_name_xx
> ERROR: schema "bbbb" does not exist
> ERROR: must be owner of database xx_db_name_xx
>
> When I execute the same command as Admin user its executing just fine. But,
> when I execute as a 'xxxxxx' user its failing.
>
> Can someone guide me, what permissions/rights should be added to 'xxxxxx' to
> restore the schema?
>
He needs CREATE permission on the database.
--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com
PostgreSQL Sessions #3: http://www.postgresql-sessions.org
From | Date | Subject | |
---|---|---|---|
Next Message | Priya G | 2012-01-13 10:39:59 | |
Previous Message | Manoj Govindassamy | 2012-01-12 18:12:47 | Re: PG synchronous replication and unresponsive slave |