Connection pooling with different user

In Nextjs dev mode I am continually getting this error remaining connection slots are reserved for non-replication superuser connections and have to restart the server every 15 minutes.

I tried to set up the connection pooling URL but I am not using the default user as it disregards RLS. How can I get a pooled connection string for a different user?
Was this page helpful?