Pawel Salek
2012-09-26 09:57:18 UTC
Hello everybody,
Since postgresql-9.1, ISO's REPEATABLE READ and SERIALIZABLE
transaction isolation levels are not identical, as described on
http://www.postgresql.org/docs/9.1/static/transaction-iso.html
I think it would make sense to expose this functionality via pqxx.
There are cases when READ_COMMITTED is insufficient and SERIALIZABLE
causes transaction failures with a negative performance impact (seen
it). Some other people report performance loss:
http://postgresql.1045698.n5.nabble.com/Overhead-cost-of-Serializable-Snapshot-Isolation-td4889344.html
Attached patch adds repeatable_read isolation trait. Can it get merged,
please? One might want to add support for read_uncommitted while we are
at it, but maybe it would be premature?
Best regards,
Pawel Salek
Since postgresql-9.1, ISO's REPEATABLE READ and SERIALIZABLE
transaction isolation levels are not identical, as described on
http://www.postgresql.org/docs/9.1/static/transaction-iso.html
I think it would make sense to expose this functionality via pqxx.
There are cases when READ_COMMITTED is insufficient and SERIALIZABLE
causes transaction failures with a negative performance impact (seen
it). Some other people report performance loss:
http://postgresql.1045698.n5.nabble.com/Overhead-cost-of-Serializable-Snapshot-Isolation-td4889344.html
Attached patch adds repeatable_read isolation trait. Can it get merged,
please? One might want to add support for read_uncommitted while we are
at it, but maybe it would be premature?
Best regards,
Pawel Salek