Re: BUG #1221: revoke on schema do not return error on failure - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1221: revoke on schema do not return error on failure
Date
Msg-id 8650.1092769179@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1221: revoke on schema do not return error on failure  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> revoke create on schema do not issues an error when user has no access
> privileges to do that.

> dbmail=>  REVOKE CREATE ON SCHEMA public FROM PUBLIC;
> REVOKE
> Grant works as expected
> dbmail=> GRANT USAGE on SCHEMA public to public;
> ERROR:  permission denied for schema public

In 8.0 both of these cases will return WARNINGs (not errors).  This is
per our current reading of the SQL specification.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1222: database owner should have implicit control over public db schema
Next
From: Tom Lane
Date:
Subject: Re: BUG #1222: database owner should have implicit control over public db schema