we just has some heavy load on our app and it became unresposive, we logged the reposneses and some of themincluded the error exposing the query and my schema;
"SQLSTATE[08006] [7] connection to server at "database" (10.0.1.xx), port 54xx failed: FATAL: sorry, too many clients already connection to server at "database" (10.0.1.xx), port 54xx failed: FATAL: sorry, too many clients already (SQL: select "dbo".*, ("dbo"."xdo"->>'id_sxxxxx')::bigint from "mvpwxx_xx" as "dbo" where ("dbo"."xdo"->>'id_sxxxxx')::bigint = 51834xxxxx::bigint order by ("dbo"."xdo"->>'id_sxxxxx')::bigint asc limit 1)"
what are your thougsts?