dbTalk Databases Forums  

[BUGS] BUG #1221: revoke on schema do not return error on failure

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1221: revoke on schema do not return error on failure in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1221: revoke on schema do not return error on failure - 08-17-2004 , 01:42 PM







The following bug has been logged online:

Bug reference: 1221
Logged by: radim kolar

Email address: hsn (AT) netmag (DOT) cz

PostgreSQL version: 7.4.1

Operating system: freebsd

Description: revoke on schema do not return error on failure

Details:

Problem 1
pgsql 7.4.1

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



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1221: revoke on schema do not return error on failure - 08-17-2004 , 02:00 PM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.