Skip to content

Commit 70aedc0

Browse files
committed
Fix incorrect comment about permissions checking being done in utility.c.
Noted while reviewing a patch from KaiGai Kohei.
1 parent 17d8de0 commit 70aedc0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/backend/commands/tablecmds.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.327 2010/02/26 02:00:39 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.328 2010/03/10 19:48:39 rhaas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1956,10 +1956,7 @@ renameatt(Oid myrelid,
19561956
errmsg("cannot rename column of typed table")));
19571957

19581958
/*
1959-
* permissions checking. this would normally be done in utility.c, but
1960-
* this particular routine is recursive.
1961-
*
1962-
* normally, only the owner of a class can change its schema.
1959+
* permissions checking. only the owner of a class can change its schema.
19631960
*/
19641961
if (!pg_class_ownercheck(myrelid, GetUserId()))
19651962
aclcheck_error(ACLCHECK_NOT_OWNER, ACL_KIND_CLASS,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy