arun chirappurath <arunsnmimt@xxxxxxxxx> writes: > I am running below query on a database. why is it creating a exclusive lock > on a virtualxid? I am running some SELECT queries and its creating an > ExclusiveLock in virtualxid? is this normal? Yes. That lock has nothing to do with any table, only with the transaction's own existence. It can't conflict when acquired, because the virtual XID is unique (at least across existing sessions). It exists so that other sessions can wait for this one if needful, by trying to take share lock on the virtualxid. regards, tom lane