Hi team,

I need you opinion again. I wrote some tests for metrics and felt a
confusion with metrics count for the same key update during transaction.
Imagine following case:

BEGIN;
INSERT INTO person(id, name) VALUES(1, 'ivan');
UPDATE person SET name = 'vanya' WHERE id = 1;
COMMIT;

My intuition said me that puts count should be increased by 2 for such
case. But current (non-mvcc) implementation increments by 1. I am not sure
that it is proper semantics. On the other hand, I think that it is better
to preserve existing behavior instead of making exception for mvcc. It will
cause even more confusion.

So, if nobody has objections I will go with existing semantics.

Reply via email to