[#2829] Fixed broken PostgreSQL transaction test behaviour