Hi there. I've finally gotten my scraping script to work, but the problem now is that I am getting the following errors.
WARNING | 2022-09-05 20:21:00 | MainThread | psycopg.pool._add_connection.422 | error connecting in 'pool-24': connection failed: FATAL: remaining connection slots are reserved for non-replication superuser connections
Obviously I have too many connections, and the previous connections that had been negotiated with the server are not being properly reused if that is even supposed to happen.
Any ideas ? Is it just a matter of optimising the postgres settings ?
Hi there. I've finally gotten my scraping script to work, but the problem now is that I am getting the following errors.
WARNING | 2022-09-05 20:21:00 | MainThread | psycopg.pool._add_connection.422 | error connecting in 'pool-24': connection failed: FATAL: remaining connection slots are reserved for non-replication superuser connections
Obviously I have too many connections, and the previous connections that had been negotiated with the server are not being properly reused if that is even supposed to happen.
Any ideas ? Is it just a matter of optimising the postgres settings ?
Thanks