From: Kevin Grittner <kgrittn@ymail.com>
To: rafael.faria@linx.com.br <rafael.faria@linx.com.br>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12538: Transação concorrente
Date: Wed, 14 Jan 2015 18:59:20 +0000 (UTC)
Message-ID: <1870555685.702501.1421261960244.JavaMail.yahoo@jws100151.mail.ne1.yahoo.com> (raw)
In-Reply-To: <20150113233751.2504.81691@wrigleys.postgresql.org>
References: <20150113233751.2504.81691@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"rafael.faria@linx.com.br" <rafael.faria@linx.com.br> wrote:
[posting quotes as rendered in English by Google translate]
> I'm analyst / developer of a system in python running a bank
> postgres, and our system has approval only to version 8.4, but
> we have clients running smoothly until version 9.0, but any
> up version of this is unusable since in many routines
> system is generated the error below.
>
> Traceback (most recent call last):
> File "class / base.py", line 318, in update
> File "C: \ Python22 \ lib \ site-packages \ lzt \ lztdb.py", line 534, in run
> ProgrammingError: ERROR: could not serialize access due to read / write
> Among dependencies transactions
>
> This error did not occur for smaller versions to 9.1, I noticed that you
> made changes to the question of how the bank works with the question of
> transactions, checked the documentation
> http://www.postgresql.org/docs/9.4/static/transaction-iso.html
As that documentation mentions, the behavior which was available
before 9.1 by choosing either SERIALIZABLE or REPEATABLE READ
remains available under REPEATABLE READ in 9.1 and later.
Some additional practical examples of differences are available on
this Wiki page, which you may want to review before deciding which
isolation level you prefer to use:
https://wiki.postgresql.org/wiki/SSI
For banking applications you might want to pay particular attention
to how you are preventing problems like the one in this example:
https://wiki.postgresql.org/wiki/SSI#Overdraft_Protection
There are certainly ways to handle that without a truly
serializable transaction isolation level, but such issues are
sometimes missed under less strict levels.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kgrittn@ymail.com, rafael.faria@linx.com.br
Subject: Re: BUG #12538: Transação concorrente
In-Reply-To: <1870555685.702501.1421261960244.JavaMail.yahoo@jws100151.mail.ne1.yahoo.com>
References: <20150113233751.2504.81691@wrigleys.postgresql.org> <1870555685.702501.1421261960244.JavaMail.yahoo@jws100151.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox