Re: create table permissions bug for 7.3.2 - Mailing list pgsql-bugs

From Tom Lane
Subject Re: create table permissions bug for 7.3.2
Date
Msg-id 4817.1047568537@sss.pgh.pa.us
Whole thread Raw
In response to create table permissions bug for 7.3.2  (Evgeny Duzhakow <diabolo@philol.msu.ru>)
List pgsql-bugs
Evgeny Duzhakow <diabolo@philol.msu.ru> writes:
>  Now connect and try to create the table:

> testtables=# \c - fake
> You are now connected as new user fake.
> testtables=> create table qq(i int);
> CREATE TABLE

Sure.  You need to revoke CREATE access on the public schema (not the
same thing as the database) if you don't want user fake to create tables
in it.  Or possibly you could remove the public schema altogether.
See the discussion of common usage patterns in the User's Guide chapter
about schemas.
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/ddl-schemas.html

            regards, tom lane

pgsql-bugs by date:

Previous
From: Andrew Koshelev
Date:
Subject: Optimizer bug in subselect/view
Next
From: Tom Lane
Date:
Subject: Re: Optimizer bug in subselect/view