Re: Revoking CREATE TABLE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tony Webb" <amw(at)sanger(dot)ac(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Revoking CREATE TABLE
Date: 2010-03-24 15:23:51
Message-ID: 21786.1269444231@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Tony Webb" <amw(at)sanger(dot)ac(dot)uk> writes:
> I can grant table privileges to the USER and RO but how do I stop these
> two users from creating new tables etc?

Revoke CREATE privilege on the public schema from PUBLIC (and then grant
it back to OWNER and whoever else you want to have it).

If you don't want them creating temp tables either, similarly revoke
the database-level TEMP privilege.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ovid 2010-03-24 15:52:41 Clipping values
Previous Message Bryan Murphy 2010-03-24 15:09:05 Re: Warm Standby Setup Documentation