79772487

Date: 2025-09-23 10:51:09
Score: 1
Natty:
Report link

pg_stat_activity doesn't give you the real connections, it gives you the backends. Parallel executions would have multiple entries so your select should be like:
select count(*) from pg_stat_activity where leader_pid is not null;

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mucahit Yavuz