Re: [GENERAL] How to distinguish serialization errors from others using pqxx

2015-03-24 Thread Kevin Grittner
Saimon wrote: > As I undersand, the only way to determine serialization errors is > to parse pqxx::sql_error exceptions' messages for keywords like > "could not serialize" etc. I had to do a web search to find out what pqxx was. It is a C++ connector for PostgreSQL that's been around for ten ye

Re: [GENERAL] How to distinguish serialization errors from others using pqxx

2015-03-24 Thread Saimon
As I undersand, the only way to determine serialization errors is to parse pqxx::sql_error exceptions' messages for keywords like "could not serialize" etc. Or am I wrong? Thanks in advance Saimon -- View this message in context: http://postgresql.nabble.com/How-to-distinguish-serialization-e

[GENERAL] How to distinguish serialization errors from others using pqxx

2015-03-23 Thread Saimon
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:/