Greetings, Under django 1.2 and Postgresql via psycopg2, I have a custom command that does heavy database actions (via Django ORM). I wrote it with threat pool via using the code here
Now my problem is, I get:
File "/usr/lib/python2.5/site-packages/django/db/backends/postgresql_psycopg2/base.py", line开发者_如何学C 136, in _cursor
self.connection = Database.connect(**conn_params)
psycopg2.OperationalError: FATAL: connection limit exceeded for non-superusers
Error, how can I overcome this issue?
Thanks
You have to change your postgresql configuration file to allow more connections.
increase max_connections parameter or use a pooling daemon. max_connections costs ~400 bytes of shared memory per connection slot, plus lock space.
精彩评论