diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-09-22 18:49:45 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-09-22 18:49:45 +0000 |
commit | 08817bdb76d2a137bb7a4d1fe7551746d9045c8e (patch) | |
tree | 988d5e2a2919c14271da8e3ca6b361211d798d53 /src/backend/access/gist/gistutil.c | |
parent | a453951dd9902d675b9b61e60afe9e02a00a22c8 (diff) | |
download | postgresql-08817bdb76d2a137bb7a4d1fe7551746d9045c8e.tar.gz |
Adjust GiST error messages to conform to message style guidelines.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
-rw-r--r-- | src/backend/access/gist/gistutil.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/access/gist/gistutil.c b/src/backend/access/gist/gistutil.c index 5b6d13a7a3..193b687ce2 100644 --- a/src/backend/access/gist/gistutil.c +++ b/src/backend/access/gist/gistutil.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.5 2005/06/30 17:52:14 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.6 2005/09/22 18:49:45 tgl Exp $ *------------------------------------------------------------------------- */ #include "postgres.h" @@ -71,7 +71,7 @@ gistfillbuffer(Relation r, Page page, IndexTuple *itup, l = PageAddItem(page, (Item) itup[i], IndexTupleSize(itup[i]), off, LP_USED); if (l == InvalidOffsetNumber) - elog(ERROR, "gistfillbuffer: failed to add index item to \"%s\"", + elog(ERROR, "failed to add item to index page in \"%s\"", RelationGetRelationName(r)); off++; } @@ -645,8 +645,9 @@ gistchoose(Relation r, Page p, IndexTuple it, /* it has compressed entry */ IndexTuple itup = (IndexTuple) PageGetItem(p, PageGetItemId(p, i)); if ( !GistPageIsLeaf(p) && GistTupleIsInvalid(itup) ) { - elog(LOG, "It's desirable to vacuum or reindex GiST index '%s' due to crash recovery", - RelationGetRelationName(r)); + ereport(LOG, + (errmsg("index \"%s\" needs VACUUM or REINDEX to finish crash recovery", + RelationGetRelationName(r)))); continue; } |