diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-03-17 22:53:31 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-03-17 22:53:31 +0000 |
commit | 58118db39dba592fad26d781b686f0d56c1ba649 (patch) | |
tree | a59a5900f1f1385c1b2cd9d49bffe8ced1b69a29 /src/backend/tcop/utility.c | |
parent | 62a7754e1ae2d817f87594eeae549a82097d8693 (diff) | |
download | postgresql-58118db39dba592fad26d781b686f0d56c1ba649.tar.gz postgresql-58118db39dba592fad26d781b686f0d56c1ba649.zip |
Add new postgres -O option to allow system table structure changes.
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 |