1010 *
1111 *
1212 * 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 $
1414 *
1515 *-------------------------------------------------------------------------
1616 */
@@ -865,11 +865,11 @@ ProcessUtility(Node *parsetree,
865865if (IsSystemRelationName (relname ))
866866{
867867if (!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 );
870870if (!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 );
873873}
874874#ifndef NO_SECURITY
875875if (!pg_ownercheck (userName ,relname ,RELNAME ))
@@ -882,11 +882,12 @@ ProcessUtility(Node *parsetree,
882882if (IsSystemRelationName (relname ))
883883{
884884if (!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 );
887887if (!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 );
890891}
891892#ifndef NO_SECURITY
892893if (!pg_ownercheck (userName ,relname ,RELNAME ))
@@ -897,9 +898,9 @@ ProcessUtility(Node *parsetree,
897898case DATABASE :
898899relname = (char * )stmt -> name ;
899900if (!allowSystemTableMods )
900- elog (ERROR ,"-Ooption is needed " );
901+ elog (ERROR ,"must be called under standalone postgres with -O-P options " );
901902if (!IsIgnoringSystemIndexes ())
902- elog (ERROR ,"-Poption is needed " );
903+ elog (ERROR ,"must be called under standalone postgres with -P-O options " );
903904ReindexDatabase (relname ,stmt -> force , false);
904905break ;
905906}