Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 558701E16586 for ; Tue, 10 Jan 2012 15:33:55 -0400 (AST) Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RkhSA-0002NJ-QG for pgsql-admin@postgresql.org; Tue, 10 Jan 2012 19:33:54 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RkhRx-0001kQ-U5 for pgsql-admin@postgresql.org; Tue, 10 Jan 2012 11:33:37 -0800 Date: Tue, 10 Jan 2012 11:33:37 -0800 (PST) From: Tripura To: pgsql-admin@postgresql.org Message-ID: <1326224017914-5135000.post@n5.nabble.com> Subject: Create & Alter Schema Permissions for a Login role in Postgresql database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.1 (/) X-Archive-Number: 201201/50 X-Sequence-Number: 38962 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? -- View this message in context: http://postgresql.1045698.n5.nabble.com/Create-Alter-Schema-Permissions-for-a-Login-role-in-Postgresql-database-tp5135000p5135000.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.