10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.86 2000/04/12 17:15:43 momjian Exp $
13
+ * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.87 2000/04/25 10:38:38 inoue Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -865,11 +865,11 @@ ProcessUtility(Node *parsetree,
865
865
if (IsSystemRelationName (relname ))
866
866
{
867
867
if (!allowSystemTableMods && IsSystemRelationName (relname ))
868
- elog (ERROR ,"class \"%s\" is a systemcatalog index" ,
869
- relname );
868
+ elog (ERROR ,"\"%s\" is a system index. call REINDEX under standalone postgres with -O -P options " ,
869
+ relname );
870
870
if (!IsIgnoringSystemIndexes ())
871
- elog (ERROR ,"class \"%s\" is a systemcatalog index" ,
872
- relname );
871
+ elog (ERROR ,"\"%s\" is a system index. call REINDEX under standalone postgres with -P -O options " ,
872
+ relname );
873
873
}
874
874
#ifndef NO_SECURITY
875
875
if (!pg_ownercheck (userName ,relname ,RELNAME ))
@@ -882,11 +882,12 @@ ProcessUtility(Node *parsetree,
882
882
if (IsSystemRelationName (relname ))
883
883
{
884
884
if (!allowSystemTableMods && IsSystemRelationName (relname ))
885
- elog (ERROR ,"class \"%s\" is a systemcatalog index " ,
886
- relname );
885
+ elog (ERROR ,"\"%s\" is a systemtable. call REINDEX under standalone postgres with -O -P options " ,
886
+ relname );
887
887
if (!IsIgnoringSystemIndexes ())
888
- elog (ERROR ,"class \"%s\" is a system catalog index" ,
889
- relname );
888
+ elog (ERROR ,"\"%s\" is a system table. call REINDEX under standalone postgres with -P -O options" ,
889
+
890
+ relname );
890
891
}
891
892
#ifndef NO_SECURITY
892
893
if (!pg_ownercheck (userName ,relname ,RELNAME ))
@@ -897,9 +898,9 @@ ProcessUtility(Node *parsetree,
897
898
case DATABASE :
898
899
relname = (char * )stmt -> name ;
899
900
if (!allowSystemTableMods )
900
- elog (ERROR ,"-Ooption is needed " );
901
+ elog (ERROR ,"must be called under standalone postgres with -O-P options " );
901
902
if (!IsIgnoringSystemIndexes ())
902
- elog (ERROR ,"-Poption is needed " );
903
+ elog (ERROR ,"must be called under standalone postgres with -P-O options " );
903
904
ReindexDatabase (relname ,stmt -> force , false);
904
905
break ;
905
906
}