aboutsummaryrefslogtreecommitdiff
path: root/src/backend/catalog/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/catalog/heap.c')
-rw-r--r--src/backend/catalog/heap.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c
index c959a469fd6..c91df900381 100644
--- a/src/backend/catalog/heap.c
+++ b/src/backend/catalog/heap.c
@@ -242,8 +242,7 @@ heap_create(const char *relname,
char relkind,
char relpersistence,
bool shared_relation,
- bool mapped_relation,
- bool allow_system_table_mods)
+ bool mapped_relation)
{
bool create_storage;
Relation rel;
@@ -252,18 +251,6 @@ heap_create(const char *relname,
Assert(OidIsValid(relid));
/*
- * sanity checks
- */
- if (!allow_system_table_mods &&
- (IsSystemNamespace(relnamespace) || IsToastNamespace(relnamespace)) &&
- IsNormalProcessingMode())
- ereport(ERROR,
- (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- errmsg("permission denied to create \"%s.%s\"",
- get_namespace_name(relnamespace), relname),
- errdetail("System catalog modifications are currently disallowed.")));
-
- /*
* Decide if we need storage or not, and handle a couple other special
* cases for particular relkinds.
*/
@@ -1124,8 +1111,7 @@ heap_create_with_catalog(const char *relname,
relkind,
relpersistence,
shared_relation,
- mapped_relation,
- allow_system_table_mods);
+ mapped_relation);
Assert(relid == RelationGetRelid(new_rel_desc));