Error: remaining connection slots are reserved for non-replication superuser connections. sorry, too many clients already

I hadn’t configured pooling as documented here Configurations - Strapi Developer Documentation

But I don’t expect this would resolve the error:

cross database references are not implemented

It looks like, this is something that might have to be manually done unless Strapi can handle it?