From 58118db39dba592fad26d781b686f0d56c1ba649 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 17 Mar 1999 22:53:31 +0000 Subject: Add new postgres -O option to allow system table structure changes. --- src/backend/tcop/utility.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/tcop/utility.c') diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 4e90663228..0df4bf2641 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 -- cgit v1.2.1