Re: Threaded application + IntegrityError

2009-07-31 Thread ramya
http://stackoverflow.com/questions/1212864/threaded-application-integrityerror On Jul 31, 9:41 am, ramya wrote: > Hi, > I have python threaded application + Postgres. I am using Django's ORM > to save to Postgres.. > I have concurrent save calls. Occasionally 2 threads sav

Re: Threaded application + IntegrityError

2009-07-31 Thread Joshua Russo
On Fri, Jul 31, 2009 at 12:41 PM, ramya wrote: > > Hi, > I have python threaded application + Postgres. I am using Django's ORM > to save to Postgres.. > I have concurrent save calls. Occasionally 2 threads save with the > same primary key which leads to an issue. > > Postgres log: > ERROR: dupl

Threaded application + IntegrityError

2009-07-31 Thread ramya
Hi, I have python threaded application + Postgres. I am using Django's ORM to save to Postgres.. I have concurrent save calls. Occasionally 2 threads save with the same primary key which leads to an issue. Postgres log: ERROR: duplicate key value violates unique constraint "store_pkey" STATEMENT