diff options
author | Bruce Momjian | 2000-10-16 17:08:11 +0000 |
---|---|---|
committer | Bruce Momjian | 2000-10-16 17:08:11 +0000 |
commit | 85f1950a6f67b2ec6dc408c32dc6169503081ad4 (patch) | |
tree | 867d912c81a3f1df3e721a7121ed634529863da2 /src/backend/commands/remove.c | |
parent | 17e3e4702d55017120bbad7211caec7e6f2f3166 (diff) |
Remove NO_SECURITY define.
Diffstat (limited to 'src/backend/commands/remove.c')
-rw-r--r-- | src/backend/commands/remove.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/backend/commands/remove.c b/src/backend/commands/remove.c index 6da32297f61..a8ad2620ef7 100644 --- a/src/backend/commands/remove.c +++ b/src/backend/commands/remove.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.53 2000/10/07 00:58:16 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.54 2000/10/16 17:08:05 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -81,13 +81,11 @@ RemoveOperator(char *operatorName, /* operator name */ if (HeapTupleIsValid(tup)) { -#ifndef NO_SECURITY if (!pg_ownercheck(GetUserId(), (char *) ObjectIdGetDatum(tup->t_data->t_oid), OPEROID)) elog(ERROR, "RemoveOperator: operator '%s': permission denied", operatorName); -#endif /*** Delete any comments associated with this operator ***/ @@ -250,11 +248,9 @@ RemoveType(char *typeName) /* type name to be removed */ Oid typeOid; char *shadow_type; -#ifndef NO_SECURITY if (!pg_ownercheck(GetUserId(), typeName, TYPENAME)) elog(ERROR, "RemoveType: type '%s': permission denied", typeName); -#endif relation = heap_openr(TypeRelationName, RowExclusiveLock); @@ -334,13 +330,11 @@ RemoveFunction(char *functionName, /* function name to be removed */ } } -#ifndef NO_SECURITY if (!pg_func_ownercheck(GetUserId(), functionName, nargs, argList)) { elog(ERROR, "RemoveFunction: function '%s': permission denied", functionName); } -#endif relation = heap_openr(ProcedureRelationName, RowExclusiveLock); tup = SearchSysCacheTuple(PROCNAME, @@ -396,7 +390,6 @@ RemoveAggregate(char *aggName, char *aggType) else basetypeID = 0; -#ifndef NO_SECURITY if (!pg_aggr_ownercheck(GetUserId(), aggName, basetypeID)) { if (aggType) @@ -410,7 +403,6 @@ RemoveAggregate(char *aggName, char *aggType) aggName); } } -#endif relation = heap_openr(AggregateRelationName, RowExclusiveLock); tup = SearchSysCacheTuple(AGGNAME, |