How to distinguish serialization errors from others using pqxx

From: Saimon <aimon(dot)slim(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to distinguish serialization errors from others using pqxx
Date: 2015-03-23 16:32:04
Message-ID: 1427128324240-5843145.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

Is there any way to distinguish serialization errors from others using pqxx?

As far as I understand there is no way to get sql error code within pqxx
lib.
Ability to detect serialization errors is important to implement retrying
logic for this cases.

--
View this message in context: http://postgresql.nabble.com/How-to-distinguish-serialization-errors-from-others-using-pqxx-tp5843145.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Мартынов Александр 2015-03-24 12:16:01 SELinux context of PostgreSQL connection process
Previous Message Vladimir Borodin 2015-03-23 14:45:12 Re: [GENERAL] [pgadmin-support] Issue with a hanging apply process on the replica db after vacuum works on primary