Hi,
I am receiving occasional db errors. Looking at the postgres error
log, I found the following line, repeating all across the log:
ERROR: duplicate key violates unique constraint "cache_pkey"
I think this translates: "you are trying to insert an item with a
primary key that already exists".
As the constraint in question is cache_pkey, this can happen with a
cache.set() call.
But, even if I do not check whether the item with that key exists,
django decides whether to insert or update. So, successive calls like:
cache.set('test', 1)
cache.set('test', 2)
does not result in error.
I cannot think of any case that would cause that duplicate key error.
Thanks for any comments...
oMat
ps: I am using a resent svn version with postgres / psycopg2 and
apparently, db as the cache. I will be switching to memcached, but not
before clarifying what the problem is in this case.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---