Uses SERIALIZABLE isolation on PostgreSQL 9.1

Bug #973159 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
William Grant

Bug Description

Appservers currently ask psycopg2 for SERIALIZABLE isolation. In PostgreSQL 9.1 this uses SSI, which is far more expensive than 8.4's implementation. 9.1's REPEATABLE READ is equivalent to 8.4's SERIALIZABLE, so we should use that instead.

Unfortunately, our old psycopg2 doesn't know about 9.1 -- requesting REPEATABLE READ gets you SERIALIZABLE anyway. So we need to upgrade to psycopg2 2.4.2 or later.

Tags: qa-ok

Related branches

Revision history for this message
William Grant (wgrant) wrote :

The changes to Insert expressions are needed because the version of my bulk insert branch that landed on trunk is slightly different from the early one we were using.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :

Fixed in stable r15063 (http://bazaar.launchpad.net/~launchpad-pqm/launchpad/stable/revision/15063) by a commit, but not testable.

tags: added: qa-untestable
Changed in launchpad:
status: In Progress → Fix Committed
tags: added: qa-needstesting
removed: qa-untestable
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.