Monday, December 13, 2010

FATAL: sorry, too many clients already

Edit postgresql.conf,then on next lines increment values

max_connections = 8
shared_buffers = 16

queries for diagnostic current sessions.

1) Select * from pg_stat_activity;
2) Select count(*) as cnt, usename, current_query FROM pg_stat_activity Group by usename,current_query Order by cnt DESC;

No comments:

Slides animation online

      [1] Slides +Animation https://slidespeak.co/free-tools/animate-slides-with-ai  [2] Slides to mp4 https://slidespeak.co/free-tools/conv...