Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id DD4699F9E22 for ; Fri, 2 Nov 2007 21:19:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 82993-02 for ; Fri, 2 Nov 2007 21:18:54 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 1484B9F9E4F for ; Fri, 2 Nov 2007 21:19:01 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Io6j2-0002Yk-3D for pgsql-admin@postgresql.org; Sat, 03 Nov 2007 00:18:56 +0000 Received: from 77.70.61.39 ([77.70.61.39]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Nov 2007 00:18:56 +0000 Received: from milen by 77.70.61.39 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Nov 2007 00:18:56 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: "Milen A. Radev" Subject: Re: schema privilege question Date: Sat, 03 Nov 2007 02:18:48 +0200 Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 77.70.61.39 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.902 tagged_above=0 required=5 tests=AWL=-0.980, BAYES_40=-0.185, RCVD_NUMERIC_HELO=2.067 X-Spam-Level: X-Archive-Number: 200711/33 X-Sequence-Number: 27276 Tena Sakai написа: > Hi everybody, > > I just created a new schema. Like this: > > create schema newschema authorization foo; > > Now I want to 3 other uses besides foo to be > able to create and drop tables/views/etc. > What I want to do would be something like: > > grant create on newschema to x, y, z; > > But it disagrees with me as to: > ERROR: relation "newschema" does not exist > > How can I do what I want to do? Add "schema" to the statement (it's mandatory - http://www.postgresql.org/docs/current/static/sql-grant.html): grant create on SCHEMA newschema to x, y, z; -- Milen A. Radev