virtualxid and transactionid
Every transaction holds a virtualxid lock. Only writers get a transactionid lock, and only once they write.
task
In one statement insert a row (WITH ... INSERT ... RETURNING) and list the distinct locktypes of this backend among virtualxid and transactionid, ordered.