Peter Geoghegan wrote:
> This now seems unnecessary, since it's already evident from your "bt
> full" output that the query involved in the crash was "select count(*)
> from pg_buffercache where isdirty".
Hmm, so is the Zabbix monitoring running that query frequently?
Because, as I recall, pg_buffercache is pretty heavy on the system,
since it needs to acquire all the bufmgr locks simultaneously?
In other words, this seems a terrible query to be running in zabbix. I
have vague memories of somebody submitting a version of this code that
returned approximate answers, good enough for monitoring ...
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services