diff options
| author | Bruce Momjian <bruce@momjian.us> | 2000-10-16 17:08:11 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2000-10-16 17:08:11 +0000 |
| commit | 85f1950a6f67b2ec6dc408c32dc6169503081ad4 (patch) | |
| tree | 867d912c81a3f1df3e721a7121ed634529863da2 /src/backend/commands/comment.c | |
| parent | 17e3e4702d55017120bbad7211caec7e6f2f3166 (diff) | |
| download | postgresql-85f1950a6f67b2ec6dc408c32dc6169503081ad4.tar.gz | |
Remove NO_SECURITY define.
Diffstat (limited to 'src/backend/commands/comment.c')
| -rw-r--r-- | src/backend/commands/comment.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c index e7b13a8078..6dd3c4dfab 100644 --- a/src/backend/commands/comment.c +++ b/src/backend/commands/comment.c @@ -283,10 +283,8 @@ CommentRelation(int reltype, char *relname, char *comment) /*** First, check object security ***/ -#ifndef NO_SECURITY if (!pg_ownercheck(GetUserId(), relname, RELNAME)) elog(ERROR, "you are not permitted to comment on class '%s'", relname); -#endif /*** Now, attempt to find the oid in the cached version of pg_class ***/ @@ -349,10 +347,8 @@ CommentAttribute(char *relname, char *attrname, char *comment) /*** First, check object security ***/ -#ifndef NO_SECURITY if (!pg_ownercheck(GetUserId(), relname, RELNAME)) elog(ERROR, "you are not permitted to comment on class '%s\'", relname); -#endif /*** Now, fetch the attribute oid from the system cache ***/ |
