Changes between Initial Version and Version 1 of Ticket #12387


Ignore:
Timestamp:
Feb 9, 2010, 3:40:09 AM (15 years ago)
Author:
Russell Keith-Magee
Comment:

There isn't enough detail here to reproduce the problem. The error suggests that the problem lies with some subtle interaction with transactions, but without more detail on what you were doing at the time you issued the save (including the state of any open transactions) it's impossible to say for sure.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12387

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #12387 – Description

    initial v1  
    11Postgres backend. When there is more references to one table with ForeignKey in same model sometimes there is thrown Exception (not always).
    2 
     2{{{
    33File "/usr/local/lib/python2.6/site-packages/django/db/models/base.py", line 410, in save
    44   self.save_base(force_insert=force_insert, force_update=force_update)
     
    2424HINT:  See server log for query details.
    2525CONTEXT:  SQL statement "SELECT 1 FROM ONLY "public"."foo_bar" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x"
    26 
     26}}}
    2727Example of model:
    28 
     28{{{
    2929class bar(models.Model):
    3030 baz = models.ForeignKey('some.model', related_name='sm')
    3131 other = models.ForeignKey('some.model', related_name='so')
     32}}}
Back to Top