]> granicus.if.org Git - postgresql/commit
When a superuser does GRANT or REVOKE on an object he doesn't own,
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Oct 2003 20:00:49 +0000 (20:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Oct 2003 20:00:49 +0000 (20:00 +0000)
commit85454829475451a095c695e8cd552791e488f89c
tree0af4312d4d2511d6e34a4740880ae4702a749c91
parent19554ed4878ba1baef2ac245cf4d7355d78d1718
When a superuser does GRANT or REVOKE on an object he doesn't own,
process the command as though it were issued by the object owner.
This prevents creating weird scenarios in which the same privileges
may appear to flow from different sources, and ensures that a superuser
can in fact revoke all privileges if he wants to.  In particular this
means that the regression tests work when run by a superuser other than
the original bootstrap userid.  Per report from Larry Rosenman.
doc/src/sgml/ref/grant.sgml
doc/src/sgml/ref/revoke.sgml
src/backend/catalog/aclchk.c