Skip site navigation (1) Skip section navigation (2)

Re: No create table

From: "Anderson Alves de Albuquerque " <andersonaa(at)gmail(dot)com>
To: "Anderson Alves de Albuquerque" <andersonaa(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: No create table
Date: 2007-07-27 14:21:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
 I try with "revoke all on schema PUBLIC FROM PUBLIC;", but after give GRANT
SELECT user can't use SELECT. When I use "revoke CREATE on schema PUBLIC
FROM PUBLIC;" and give GRANT SELECT user can use SELECT.

On 7/27/07, Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> Anderson Alves de Albuquerque  wrote:
> > I need to use a user that can not have permission to create table in one
> > BD.
> >
> > I use revoke,  I tray with "revoke all on database XXX to|from
> > but I don't have success.
> >
> > Could someone help me?
> You have to revoke permissions from the _schema_, not from databases.
> Say,
> revoke all on schema PUBLIC FROM PUBLIC;
> revoke all on schema PUBLIC FROM username;
> You have to remove from PUBLIC because otherwise the user will still
> have permissions to create via that privilege, even if you take his own
> permission away (if he had one at all actually).
> --
> Alvaro Herrera
> PostgreSQL Replication, Consulting, Custom Development, 24x7 support


In response to

pgsql-admin by date

Next:From: Anderson Alves de Albuquerque Date: 2007-07-27 14:48:44
Subject: Re: No create table
Previous:From: Carol WalterDate: 2007-07-27 14:05:49
Subject: phpPgAdmin

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group