Re: Transaction Rollback errors

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Siddharth Jain <siddhsql(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Transaction Rollback errors
Date: 2023-04-12 02:23:37
Message-ID: 751896.1681266217@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Siddharth Jain <siddhsql(at)gmail(dot)com> writes:
> when my application (Node.js) receives a class 40 error:

> Class 40 — Transaction Rollback
> 40000 transaction_rollback
> 40002 transaction_integrity_constraint_violation
> 40001 serialization_failure
> 40003 statement_completion_unknown
> 40P01 deadlock_detectedthen does it mean PG has already rolled back the tx
> and therefore I should not attempt to roll it back again? Thanks,

No, treat these the same as any other error.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fabrice Chapuis 2023-04-12 09:32:49 pg_basebackup / recovery
Previous Message Michael Paquier 2023-04-12 00:35:56 Re: "PANIC: could not open critical system index 2662" - twice