mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
Change elog(WARN) to elog(ERROR) and elog(ABORT).
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.22 1997/12/09 01:40:30 thomas Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.23 1998/01/05 03:29:45 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -123,7 +123,7 @@ _bt_doinsert(Relation rel, BTItem btitem, bool index_is_unique, Relation heapRel
|
||||
htup = heap_fetch(heapRel, true, &(itup->t_tid), NULL);
|
||||
if (htup != (HeapTuple) NULL)
|
||||
{ /* it is a duplicate */
|
||||
elog(WARN, "Cannot insert a duplicate key into a unique index");
|
||||
elog(ABORT, "Cannot insert a duplicate key into a unique index");
|
||||
}
|
||||
/* get next offnum */
|
||||
if (offset < maxoff)
|
||||
@@ -1442,7 +1442,7 @@ _bt_updateitem(Relation rel,
|
||||
* if(IndexTupleDSize(newItem->bti_itup) >
|
||||
* IndexTupleDSize(item->bti_itup)) { elog(NOTICE, "trying to
|
||||
* overwrite a smaller value with a bigger one in _bt_updateitem");
|
||||
* elog(WARN, "this is not good."); }
|
||||
* elog(ABORT, "this is not good."); }
|
||||
*/
|
||||
|
||||
oldIndexTuple = &(item->bti_itup);
|
||||
|
||||
Reference in New Issue
Block a user