Odoo Help


Why Odoo use select for share Query to retrieve any data ? Due to this serialize access is there.

Emipro Technologies Pvt. Ltd.
on 8/23/14, 2:37 AM 5,777 views


I have face so many times serialize access error. And I have also seen that it is due to query like SELECT .... FOR SHARE. we can also see into log.

TransactionRollbackError: could not serialize access due to concurrent update CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."res_users" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x"

Why Odoo / OpenERP use SELECT .... FOR SHARE query to retrieve data ?

What version/revision is that on?

Brett Lehrer
on 9/13/14, 11:43 AM

I've noticed this same issue several times before, I don't know where the FOR SHARE context comes from though. It's always on res_users, too.

Brett Lehrer
on 9/13/14, 11:59 AM

Thanks a lot for support this question. I have found that this is an issue from the beginning of the openerp till now. Why it is used ? and what is the benefit of this ? I dont know.

Emipro Technologies Pvt. Ltd.
on 9/15/14, 12:37 AM

A possible solution: https://www.odoo.com/forum/help-1/question/transactionrollbackerror-a-possible-solution-69070

Med Said BARA
on 11/30/14, 7:35 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

6 follower(s)


Asked: 8/23/14, 2:37 AM
Seen: 5777 times
Last updated: 2/18/16, 7:22 PM