FATAL: remaining connection slots are reserved for non-replication superuser connections Traceback (most recent call last): File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 386, in handle() File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 375, in handle return Overview(mailing_list).render({"page": int(parts[2])}) File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 203, in render self.create(data) File "/mnt/hd/web/1bpm.net/ml.csound/app/handler.py", line 241, in create for thread in threads: File "/usr/lib/python2.7/dist-packages/peewee.py", line 5896, in __iter__ self.execute() File "/usr/lib/python2.7/dist-packages/peewee.py", line 1587, in inner return method(self, database, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/peewee.py", line 1658, in execute return self._execute(database) File "/usr/lib/python2.7/dist-packages/peewee.py", line 1809, in _execute cursor = database.execute(self) File "/usr/lib/python2.7/dist-packages/playhouse/postgres_ext.py", line 451, in execute cursor = self.execute_sql(sql, params, commit=commit) File "/usr/lib/python2.7/dist-packages/peewee.py", line 2660, in execute_sql self.commit() File "/usr/lib/python2.7/dist-packages/peewee.py", line 2451, in __exit__ reraise(new_type, new_type(*exc_args), traceback) File "/usr/lib/python2.7/dist-packages/peewee.py", line 2651, in execute_sql cursor = self.cursor(commit) File "/usr/lib/python2.7/dist-packages/playhouse/postgres_ext.py", line 438, in cursor self.connect() File "/usr/lib/python2.7/dist-packages/peewee.py", line 2601, in connect self._initialize_connection(self._state.conn) File "/usr/lib/python2.7/dist-packages/peewee.py", line 2451, in __exit__ reraise(new_type, new_type(*exc_args), traceback) File "/usr/lib/python2.7/dist-packages/peewee.py", line 2600, in connect self._state.set_connection(self._connect()) File "/usr/lib/python2.7/dist-packages/playhouse/postgres_ext.py", line 431, in _connect conn = super(PostgresqlExtDatabase, self)._connect() File "/usr/lib/python2.7/dist-packages/peewee.py", line 3227, in _connect conn = psycopg2.connect(database=self.database, **self.connect_params) File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 130, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) OperationalError: FATAL: remaining connection slots are reserved for non-replication superuser connections