Kill long queries or idle sessions

run every few minutes in crontab:

kill -9 `ps aux | awk '/postgres/ && /idle/ && $10 ~ /^1:/ {print $2}'`
faq/support/postgresql/long_queries.txt · Last modified: 2019/04/10 08:51 by 127.0.0.1
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0