diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-12 20:38:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-12 20:38:31 +0000 |
commit | 9999f5a10e722c052006886b678995695001958a (patch) | |
tree | ee8b463a3369b5b4283ebb5aa893549de7c3fc45 /src/backend/commands/creatinh.c | |
parent | 79b60cb132824a4939178b3ce9ded5c220a0f179 (diff) | |
download | postgresql-9999f5a10e722c052006886b678995695001958a.tar.gz postgresql-9999f5a10e722c052006886b678995695001958a.zip |
Checking to decide whether relations are system relations now depends
on the namespace not the name; pg_ is not a reserved prefix for table
names anymore. From Fernando Nasser.
Diffstat (limited to 'src/backend/commands/creatinh.c')
-rw-r--r-- | src/backend/commands/creatinh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/commands/creatinh.c b/src/backend/commands/creatinh.c index 4a76e0c11ec..6a0cf811473 100644 --- a/src/backend/commands/creatinh.c +++ b/src/backend/commands/creatinh.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.95 2002/03/31 06:26:30 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.96 2002/04/12 20:38:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,6 @@ #include "catalog/indexing.h" #include "catalog/namespace.h" #include "catalog/pg_inherits.h" -#include "catalog/pg_namespace.h" #include "catalog/pg_type.h" #include "commands/creatinh.h" #include "miscadmin.h" @@ -275,7 +274,7 @@ TruncateRelation(const RangeVar *relation) elog(ERROR, "TRUNCATE cannot be used on views. '%s' is a view", RelationGetRelationName(rel)); - if (!allowSystemTableMods && IsSystemRelationName(RelationGetRelationName(rel))) + if (!allowSystemTableMods && IsSystemRelation(rel)) elog(ERROR, "TRUNCATE cannot be used on system tables. '%s' is a system table", RelationGetRelationName(rel)); |