/* Find the tuple to be deleted */
found = find_target_tuple(rel, chgcxt, spilled_tuple, ondisk_tuple);
if (!found)
- elog(ERROR, "failed to find target tuple");
+ elog(ERROR, "could not find target tuple");
apply_concurrent_delete(rel, ondisk_tuple);
}
else if (kind == CHANGE_UPDATE_NEW)
/* Find the tuple to be updated or deleted. */
found = find_target_tuple(rel, chgcxt, key, ondisk_tuple);
if (!found)
- elog(ERROR, "failed to find target tuple");
+ elog(ERROR, "could not find target tuple");
/*
* If 'tup' contains TOAST pointers, they point to the old
&tmfd, &lockmode, &update_indexes);
if (res != TM_Ok)
ereport(ERROR,
- errmsg("failed to apply concurrent UPDATE"));
+ errcode(ERRCODE_T_R_SERIALIZATION_FAILURE),
+ errmsg("could not apply concurrent %s on relation \"%s\"",
+ "UPDATE", RelationGetRelationName(rel)));
if (update_indexes != TU_None)
{
if (res != TM_Ok)
ereport(ERROR,
- errmsg("failed to apply concurrent DELETE"));
+ errcode(ERRCODE_T_R_SERIALIZATION_FAILURE),
+ errmsg("could not apply concurrent %s on relation \"%s\"",
+ "DELETE", RelationGetRelationName(rel)));
pgstat_progress_incr_param(PROGRESS_REPACK_HEAP_TUPLES_DELETED, 1);
}
}
}
if (chgcxt->cc_ident_index == NULL)
- elog(ERROR, "failed to find identity index");
+ elog(ERROR, "could not find identity index");
/* Set up for scanning said identity index */
{
priv->end_of_wal = false;
else
ereport(ERROR,
+ errcode(ERRCODE_DATA_CORRUPTED),
errmsg("could not read WAL record"));
}
if (res != WAIT_LSN_RESULT_SUCCESS &&
res != WAIT_LSN_RESULT_TIMEOUT)
ereport(ERROR,
+ errcode(ERRCODE_INTERNAL_ERROR),
errmsg("waiting for WAL failed"));
}
}