Użytkownik Ed Leafe napisał:
> On Nov 26, 2010, at 2:26 PM, Jacek Kałucki wrote:
>
>    
>> As you know, psycopg2 uses implicit transactions.
>> Unfortunately, it causes that once per hundred writes
>> I loose my my data.
>> Here is the excerpt from backend log: http://dabo.codepad.org/ICZonfLB
>> There is warning message "there is no transaction in progress" after second
>> commit and my data flies away occasionally.
>> Is this possible that you add explicit transactions support
>> to PostgreSQL backend?
>>      
>       I believe that issuing a second 'BEGIN' will not harm anything, 
> although it may generate a warning. Can you try changing the beginTransaction 
> method in dbPostgreSQL.py to issue:
>
> cursor.execute("BEGIN")
>
> ... and let me know how that works?
>
>
>    

I changed dbPostgreSQL code to: http://dabo.codepad.org/pRnon52W
This works, but I don't know when get_transaction_status() were introduced.
It may be missing in older psycopg versions.

-- 
Regards
Jacek Kałucki


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to