Is there a way to detect which query (or queries) on hot standby holds streaming replication? Looked into the sources and found out that function ResolveRecoveryConflictWithVirtualXIDs do that job but have no idea how to do that with SQL. -- With best regards, Andrey Zhidenkov.