Or should I not run the script in the first place since connection pooling handles idle connections?
That. Combined with the developers correctly handling connection management in their code. The pooler doesn’t doesn’t fix bad code. It lets you properly disconnect and reconnect constantly in the application while minimizing the pain of doing so. Settings on the poolers came surface the pain of bad usage more quickly, and should turn connection failures into connection delays (which should eventually timeout). Speaking off-the-cuff here...
David J.