mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Error message editing in backend/access.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.25 2002/06/20 20:29:24 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashinsert.c,v 1.26 2003/07/21 20:29:38 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -48,7 +48,7 @@ _hash_doinsert(Relation rel, HashItem hitem)
|
||||
/* we need a scan key to do our search, so build one */
|
||||
itup = &(hitem->hash_itup);
|
||||
if ((natts = rel->rd_rel->relnatts) != 1)
|
||||
elog(ERROR, "Hash indices valid for only one index key.");
|
||||
elog(ERROR, "Hash indexes support only one index key");
|
||||
itup_scankey = _hash_mkscankey(rel, itup);
|
||||
|
||||
/*
|
||||
@@ -228,7 +228,7 @@ _hash_pgaddtup(Relation rel,
|
||||
itup_off = OffsetNumberNext(PageGetMaxOffsetNumber(page));
|
||||
if (PageAddItem(page, (Item) hitem, itemsize, itup_off, LP_USED)
|
||||
== InvalidOffsetNumber)
|
||||
elog(ERROR, "_hash_pgaddtup: failed to add index item to %s",
|
||||
elog(ERROR, "failed to add index item to \"%s\"",
|
||||
RelationGetRelationName(rel));
|
||||
|
||||
/* write the buffer, but hold our lock */
|
||||
|
||||
Reference in New Issue
Block a user