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: Revoke for a new role
Date: Fri, 13 Jun 2008 17:05:06 +0300
Message-ID: <g2tur0$rtq$1@ger.gmane.org> (raw)
In-Reply-To: <3a0028490806130635v2a0890easf8c22b8362d06e89@mail.gmail.com>
References: <3a0028490806130635v2a0890easf8c22b8362d06e89@mail.gmail.com>

Rafael Domiciano написа:
> Hi folks,
> 
> I'm new in this mailing list.
> 
> I need to create a role (Postgres user) that cannot drop or create table,
> but can create TEMP tables. This role must do I, U and D normally.
> 
> I have read some docs over the web and discovered that option to revoke
> "create table" doesn't exist.
> 
> Can someone give me a light?!


For a role to be able to create tables (and other objects) it should 
have "CREATE" privilege on the _schema_ in question. As for creating 
temporary tables - "TEMP" ("TEMPORARY") privilege on the _database_ in 
question.

Please check 
http://www.postgresql.org/docs/current/static/sql-grant.html for details.

-- 
Milen A. Radev




view thread (5+ messages)  latest in thread

Message-ID: <g2tur0$rtq$1@ger.gmane.org>
Permalink:  ../g2tur0$rtq$1@ger.gmane.org/
Also on:    postgresql.org/message-id/g2tur0$rtq$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: Revoke for a new role
  In-Reply-To: <g2tur0$rtq$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