Normal errors codes in serializable transactions

Поиск
Список
Период
Сортировка
От Jon Smark
Тема Normal errors codes in serializable transactions
Дата
Msg-id 1368054225.16633.YahooMailNeo@web121004.mail.ne1.yahoo.com
обсуждение исходный текст
Ответы Re: Normal errors codes in serializable transactions  (Tatsuo Ishii <ishii@postgresql.org>)
Re: Normal errors codes in serializable transactions  (Kevin Grittner <kgrittn@ymail.com>)
Список pgsql-general
Hi,

The manual mentions that SERIALIZABLE transactions may abort with error 40001,
in which case the client application is supposed to retry the transaction.  I've been
stress testing an application by issuing lots of concurrent requests, and sure enough,
every now and then I get back those 40001 errors.  However, sometimes I also get
back error 40P01.  It seems no ill comes to pass if I also retry those transactions,
but since this error code is not explicitly mentioned in the manual, one question
arises: which error codes can be considered "normal" (in the sense it's reasonable
for the client to retry) when issuing SERIALIZABLE transactions, and which ones
(within the scope of class 40, of course) are to be considered real errors?

Thanks in advance!
Best,
Jon



В списке pgsql-general по дате отправления:

Предыдущее
От: Gavin Flower
Дата:
Сообщение: Re: Does it make sense to break a large query into separate functions?
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: question on most efficient way to increment a column