diff options
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 4e906632280..0df4bf26414 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.58 1999/03/16 03:24:17 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.59 1999/03/17 22:53:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -187,7 +187,7 @@ ProcessUtility(Node *parsetree, foreach(arg, args) { relname = strVal(lfirst(arg)); - if (IsSystemRelationName(relname)) + if (!allowSystemTableMods && IsSystemRelationName(relname)) elog(ERROR, "class \"%s\" is a system catalog", relname); rel = heap_openr(relname); @@ -268,7 +268,7 @@ ProcessUtility(Node *parsetree, CHECK_IF_ABORTED(); relname = stmt->relname; - if (IsSystemRelationName(relname)) + if (!allowSystemTableMods && IsSystemRelationName(relname)) elog(ERROR, "class \"%s\" is a system catalog", relname); #ifndef NO_SECURITY @@ -457,7 +457,7 @@ ProcessUtility(Node *parsetree, { case INDEX: relname = stmt->name; - if (IsSystemRelationName(relname)) + if (!allowSystemTableMods && IsSystemRelationName(relname)) elog(ERROR, "class \"%s\" is a system catalog index", relname); #ifndef NO_SECURITY |