hmm now I'm thinking maybe setting up pgbouncer in front of postgres withstatement mode would help?
--Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html