aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/command.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-03-17 22:53:31 +0000
committerBruce Momjian <bruce@momjian.us>1999-03-17 22:53:31 +0000
commit58118db39dba592fad26d781b686f0d56c1ba649 (patch)
treea59a5900f1f1385c1b2cd9d49bffe8ced1b69a29 /src/backend/commands/command.c
parent62a7754e1ae2d817f87594eeae549a82097d8693 (diff)
downloadpostgresql-58118db39dba592fad26d781b686f0d56c1ba649.tar.gz
postgresql-58118db39dba592fad26d781b686f0d56c1ba649.zip
Add new postgres -O option to allow system table structure changes.
Diffstat (limited to 'src/backend/commands/command.c')
-rw-r--r--src/backend/commands/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/command.c b/src/backend/commands/command.c
index ca5cbeff9e5..4a391cd5490 100644
--- a/src/backend/commands/command.c
+++ b/src/backend/commands/command.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.39 1999/02/24 17:28:57 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.40 1999/03/17 22:52:51 momjian Exp $
*
* NOTES
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -308,7 +308,7 @@ PerformAddAttribute(char *relationName,
*
* normally, only the owner of a class can change its schema.
*/
- if (IsSystemRelationName(relationName))
+ if (!allowSystemTableMods && IsSystemRelationName(relationName))
elog(ERROR, "PerformAddAttribute: class \"%s\" is a system catalog",
relationName);
#ifndef NO_SECURITY