We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6851f0 commit 97c04faCopy full SHA for 97c04fa
src/backend/catalog/index.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.144 2001/03/22 06:16:10 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.145 2001/04/02 14:34:25 momjian Exp $
12
13
14
* INTERFACE ROUTINES
@@ -864,6 +864,10 @@ index_create(char *heapRelationName,
864
indexInfo->ii_NumKeyAttrs < 1)
865
elog(ERROR, "must index at least one attribute");
866
867
+ if (heapRelationName && !allow_system_table_mods &&
868
+ IsSystemRelationName(heapRelationName) && IsNormalProcessingMode())
869
+ elog(ERROR, "User-defined indexes on system catalogs are not supported");
870
+
871
/*
872
* get heap relation oid and open the heap relation
873
*/
0 commit comments