Hello! I realize proposed solution does not guarantee absent of false negative cases... It happens because I am looking just at XID values, but them have nothing with transaction commitment order in the common case.
I'll look for some other option. Best regards, Mikhail.