"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> Should the change be TransactionIdIsInProgress(tuple->t_cmin) ?
I'd be willing to do
if (tuple->t_cmin is my XID)
do something;
Assert(!TransactionIdIsInProgress(tuple->t_cmin));
if that makes you feel better. But anything that's scanning
a table exclusive-locked by another transaction is broken.
(BTW: contrib/pgstattuple is thus broken. Will fix.)
regards, tom lane