On Mon, Apr 24, 2023 at 5:37 PM Siddharth Jain <siddhsql@xxxxxxxxx> wrote: > i am asking: what happens if a failed transaction is not rolled back? A transaction either terminates by a commit or by a rollback. A failed transaction is an opened transaction that can be terminated only by a rollback. If you don't rollback, then your transaction is hold by the driver, that means for instance your pooler is not able to recycle it. Clearly, the exact behavior depends by the driver.