diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2000-04-25 10:38:38 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2000-04-25 10:38:38 +0000 |
commit | 56e09ddf0c8c0fbfe2a76578250a776fd8bd93b8 (patch) | |
tree | b27b104f9865efeba4278aa74b59c75516613402 /src/backend/tcop/utility.c | |
parent | 282861ad755ecb06bd2f724f8f1dcf0a3c530213 (diff) | |
download | postgresql-56e09ddf0c8c0fbfe2a76578250a776fd8bd93b8.tar.gz postgresql-56e09ddf0c8c0fbfe2a76578250a776fd8bd93b8.zip |
change reindex ERROR/NOTICE message
Diffstat (limited to 'src/backend/tcop/utility.c')
-rw-r--r-- | src/backend/tcop/utility.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index 2cc10fe1cd9..89ac3a635ac 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.86 2000/04/12 17:15:43 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.87 2000/04/25 10:38:38 inoue Exp $ * *------------------------------------------------------------------------- */ @@ -865,11 +865,11 @@ ProcessUtility(Node *parsetree, if (IsSystemRelationName(relname)) { if (!allowSystemTableMods && IsSystemRelationName(relname)) - elog(ERROR, "class \"%s\" is a system catalog index", - relname); + elog(ERROR, "\"%s\" is a system index. call REINDEX under standalone postgres with -O -P options", + relname); if (!IsIgnoringSystemIndexes()) - elog(ERROR, "class \"%s\" is a system catalog index", - relname); + elog(ERROR, "\"%s\" is a system index. call REINDEX under standalone postgres with -P -O options", + relname); } #ifndef NO_SECURITY if (!pg_ownercheck(userName, relname, RELNAME)) @@ -882,11 +882,12 @@ ProcessUtility(Node *parsetree, if (IsSystemRelationName(relname)) { if (!allowSystemTableMods && IsSystemRelationName(relname)) - elog(ERROR, "class \"%s\" is a system catalog index", - relname); + elog(ERROR, "\"%s\" is a system table. call REINDEX under standalone postgres with -O -P options", + relname); if (!IsIgnoringSystemIndexes()) - elog(ERROR, "class \"%s\" is a system catalog index", - relname); + elog(ERROR, "\"%s\" is a system table. call REINDEX under standalone postgres with -P -O options", + + relname); } #ifndef NO_SECURITY if (!pg_ownercheck(userName, relname, RELNAME)) @@ -897,9 +898,9 @@ ProcessUtility(Node *parsetree, case DATABASE: relname = (char *) stmt->name; if (!allowSystemTableMods) - elog(ERROR, "-O option is needed"); + elog(ERROR, "must be called under standalone postgres with -O -P options"); if (!IsIgnoringSystemIndexes()) - elog(ERROR, "-P option is needed"); + elog(ERROR, "must be called under standalone postgres with -P -O options"); ReindexDatabase(relname, stmt->force, false); break; } |