Re: Revoking CREATE TABLE - Mailing list pgsql-general

From Tom Lane
Subject Re: Revoking CREATE TABLE
Date
Msg-id 21786.1269444231@sss.pgh.pa.us
Whole thread Raw
In response to Revoking CREATE TABLE  ("Tony Webb" <amw@sanger.ac.uk>)
List pgsql-general
"Tony Webb" <amw@sanger.ac.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

pgsql-general by date:

Previous
From: "Tony Webb"
Date:
Subject: Revoking CREATE TABLE
Next
From: Ovid
Date:
Subject: Clipping values