mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Fix incorrect comment about permissions checking being done in utility.c.
Noted while reviewing a patch from KaiGai Kohei.
This commit is contained in:
parent
17d8de0e61
commit
70aedc0c55
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.327 2010/02/26 02:00:39 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.328 2010/03/10 19:48:39 rhaas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1956,10 +1956,7 @@ renameatt(Oid myrelid,
|
|||||||
errmsg("cannot rename column of typed table")));
|
errmsg("cannot rename column of typed table")));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* permissions checking. this would normally be done in utility.c, but
|
* permissions checking. only the owner of a class can change its schema.
|
||||||
* this particular routine is recursive.
|
|
||||||
*
|
|
||||||
* normally, only the owner of a class can change its schema.
|
|
||||||
*/
|
*/
|
||||||
if (!pg_class_ownercheck(myrelid, GetUserId()))
|
if (!pg_class_ownercheck(myrelid, GetUserId()))
|
||||||
aclcheck_error(ACLCHECK_NOT_OWNER, ACL_KIND_CLASS,
|
aclcheck_error(ACLCHECK_NOT_OWNER, ACL_KIND_CLASS,
|
||||||
|
Loading…
Reference in New Issue
Block a user