aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2010-03-10 19:48:39 +0000
committerRobert Haas <rhaas@postgresql.org>2010-03-10 19:48:39 +0000
commit70aedc0c55b633da814ec12a5705cf5b09f4d6ba (patch)
tree3d6411cd57a1defc1387b817f6915ef4186b7f5d
parent17d8de0e6102d288a0745cb30499411c2e7ad213 (diff)
downloadpostgresql-70aedc0c55b633da814ec12a5705cf5b09f4d6ba.tar.gz
postgresql-70aedc0c55b633da814ec12a5705cf5b09f4d6ba.zip
Fix incorrect comment about permissions checking being done in utility.c.
Noted while reviewing a patch from KaiGai Kohei.
-rw-r--r--src/backend/commands/tablecmds.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index c2360e2d84e..79c5163e61b 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -8,7 +8,7 @@
*
*
* 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")));
/*
- * permissions checking. this would normally be done in utility.c, but
- * this particular routine is recursive.
- *
- * normally, only the owner of a class can change its schema.
+ * permissions checking. only the owner of a class can change its schema.
*/
if (!pg_class_ownercheck(myrelid, GetUserId()))
aclcheck_error(ACLCHECK_NOT_OWNER, ACL_KIND_CLASS,