pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen A. Radev <milen@radev.net>
To: pgsql-admin@postgresql.org
Subject: Re: schema privilege question
Date: Sat, 03 Nov 2007 02:18:48 +0200
Message-ID: <fggep7$nt1$1@ger.gmane.org> (raw)
In-Reply-To: <FE44E0D7EAD2ED4BB2165071DB8E328C03062D5D@egcrc-ex01.egcrc.org>
References: <FE44E0D7EAD2ED4BB2165071DB8E328C03062D5D@egcrc-ex01.egcrc.org>

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




view thread (3+ messages)  latest in thread

Message-ID: <fggep7$nt1$1@ger.gmane.org>
Permalink:  ../fggep7$nt1$1@ger.gmane.org/
Also on:    postgresql.org/message-id/fggep7$nt1$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: milen@radev.net
  Subject: Re: schema privilege question
  In-Reply-To: <fggep7$nt1$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox