X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 648344758C9 for ; Mon, 21 Apr 2003 09:50:17 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id C1B8A474E42 for ; Mon, 21 Apr 2003 09:50:15 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3LDoHU6028103; Mon, 21 Apr 2003 09:50:19 -0400 (EDT) To: Pedro Salazar Cc: pgsql-admin Subject: Re: restore database with schema: owner schema must have superuser privileges? In-reply-to: <1050915300.1050.15.camel@vitoria.intra.cet.pt> References: <1050915300.1050.15.camel@vitoria.intra.cet.pt> Comments: In-reply-to Pedro Salazar message dated "21 Apr 2003 09:55:00 +0100" Date: Mon, 21 Apr 2003 09:50:17 -0400 Message-ID: <28102.1050933017@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.3 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/286 X-Sequence-Number: 8441 Pedro Salazar writes: > I have a database which has a schema owned by a user (with no superuser > privileges). When restoring the dump file with my superuser database, > the dump script connects with my owner user (which I created before), > and tries to create the schema with that user, and of course it cannot > do it, because my owner user hasn't super user privileges that permits > create a schema! You don't need superuser privs to create a schema, only CREATE privs on the database. Why would you have revoked CREATE-schema privs from the database owner?? Seems downright weird. pg_dump does have some known problems with situations where a previously-held right has been revoked. I guess this is another one for the to-do list. regards, tom lane